Yes you can create seed data and install it using ant run-install-seed, but
again make sure if PCCharge data is there or not, I am not sure about it and
also no idea about how PCCharge works.

Below is the way used to create seed for payment gateway in general, incase
you start with seeding data creation for PCCharge

You need to look at the entities (database tables) being used by PCCharge,
you can use webtools for this.

Below is an example of already existing seed data for your reference,

1) <PaymentGatewayConfigType paymentGatewayConfigTypeId="SAGEPAY"
hasTable="N" description="SagePay Payment   Gateway"/>

Here "SAGEPAY" can be "PCCHARGE"

2) <PaymentGatewayConfig paymentGatewayConfigId="SAGEPAY_CONFIG"
paymentGatewayConfigTypeId="SAGEPAY" description="SagePay Config"/>

Here "SAGEPAY_CONFIG" can be "PCCHARGE_CONFIG" and update the
paymentGatewayConfigTypeId to "PCCHARGE" from step 1.

3) <PaymentGatewaySagePay paymentGatewayConfigId="SAGEPAY_CONFIG"
vendor="YOUR_VENDOR_NAME" />

Here "PaymentGatewaySagePay" should be replace by the name of the entity
used for PCCharge which you need to find out easily using webtools or
looking at the code, apart from this you also need to assign values to the
fields, as done above, for e.g. productionHost="https://live.sagepay.com:443
"

I have removed all the attributes (fields) leaving just 2 from the step 3
above.

That's all you need to have seed data for PCCharge ..

HTH

- Abdullah

On Thu, Dec 10, 2009 at 6:47 PM, Mauricio Tavares <[email protected]>wrote:

> Abdullah Shaikh wrote:
>
>> Hey I just had a quick look at the seed data files, but couldn't find seed
>> data related to PCCharge.
>>
>> How it happens is, for every payment gateway implemented in ofbiz there is
>> seed data, and when you install it, there in payment gateway settings you
>> find the config and then configure the transaction types for that gateway.
>>
>> But in the case of PCChange, I am not sure, but I guess there is no seed
>> data and that's the reason for PCCharge not appearing in the drop down.
>>
>>         Thanks for letting me know; I do not feel I am losing my mind any
> longer (at least not more than the usual). That said, can we create seed
> data for pccharge?  If so, how?
>
>
>  - Abdullah
>>
>> On Thu, Dec 10, 2009 at 4:36 AM, Mauricio Tavares <[email protected]
>> >wrote:
>>
>>  Elaborating on what I said, currently the only Payment Gateway Config
>>> Types available are
>>>
>>> Authorize.net
>>> clear commerce
>>> cybersource
>>> orbital
>>> paypal
>>> payflow
>>> rbs worldpay
>>> sagepay
>>>
>>> If I just run ./ant run-install-seed, it will not add pccharge. What
>>> am I missing here? I kinda expected some file where I would define
>>> which processing institutions I want to be enabled and then let
>>> run-install-seed find the said file and then create the appropriate
>>> files. But, I do feel I am missing an important step here.
>>>
>>> On Wed, Dec 9, 2009 at 2:03 PM, Mauricio Tavares <[email protected]>
>>> wrote:
>>>
>>>> On Wed, Dec 9, 2009 at 10:34 AM, Abdullah Shaikh
>>>> <[email protected]> wrote:
>>>>
>>>>> No, you need to run the run-install-seed ant target from the build.xml
>>>>>
>>>> file
>>>
>>>> that is there in ofbiz folder, this will install seed data required.
>>>>>
>>>>> If incase you want to have a look at seed data for accounting
>>>>> component,
>>>>> look into ofbiz/applications/accounting/data folder
>>>>>
>>>>> - Abdullah
>>>>>
>>>>>      I hate to say this but I am still confused. I am using the demo
>>>> data and modifying it through the ofbiz modules/applications as needed
>>>> (and as I find things out). But, I am not seeing where you configure
>>>> the list of available payment institutions you are going to use and
>>>> then seed it. So, how do you setup the seed data for accounting
>>>> component?
>>>>
>>>>  On Wed, Dec 9, 2009 at 8:48 PM, Mauricio Tavares <[email protected]
>>>>>
>>>> wrote:
>>>>
>>>>> On Wed, Dec 9, 2009 at 9:30 AM, Abdullah Shaikh
>>>>>> <[email protected]> wrote:
>>>>>>
>>>>>>> Have you setup the seed data for accounting component, the seed data
>>>>>>>
>>>>>> will
>>>
>>>>  setup the seed data for payment gateway and then it should be
>>>>>>>
>>>>>> available
>>>
>>>>  in
>>>>>>
>>>>>>> drop down.
>>>>>>>
>>>>>>>        By seed data, do you mean configuring the account for pccharge
>>>>>> in applications/accounting/config/payment.properties and restarting?
>>>>>>
>>>>>>  - Abdullah
>>>>>>>
>>>>>>> On Wed, Dec 9, 2009 at 7:50 PM, Mauricio Tavares <
>>>>>>>
>>>>>> [email protected]
>>>
>>>>  wrote:
>>>>>>>
>>>>>>>  Newbie question: I am trying to setup OFBiz for the first time
>>>>>>>> (downloaded the trunk-2009-12-07-v887873 version a few days ago).
>>>>>>>>
>>>>>>> For
>>>
>>>>  this test, I need to set it up to use PCCharge as the payment
>>>>>>>> institution. So, I went to the Product Store Payment Settings (using
>>>>>>>> the demo e-commerce store) and tried to select PPCharge from the
>>>>>>>> Setting Payment Gateway Config menu (as the Payment Authorization
>>>>>>>> Service). But, it is not there. Is there a place I need to set it up
>>>>>>>> first?
>>>>>>>>
>>>>>>>>
>>
>

Reply via email to