Hi Rupinder, Could you tell me if you are using the OFBiz demo data? If you have customized data it is possible that you have to correct some of your settings(e.g product store settings etc.).
First it depends for witch store you are creating the order. If you are using the OFBiz E-Commerce Store here you can find the list of services that will be used for authorization and capturing of the gift card payments: https://demo.hotwaxmedia.com/catalog/control/EditProductStorePaySetup?productStoreId=9000 Authorization: ofbGcAuthorize service Capturing: ofbGcProcessor service The best way is to go through the code of these services. This way you will be familiar with all required settings to get successful GC payment processing. The second place where you have to make settings if you are using your data(not OFBiz demo data) is "Product Store Financial Account Settings" screen: https://demo.hotwaxmedia.com/catalog/control/EditProductStoreFinAccountSettings?productStoreId=9000 Here you should have one record with "Fin Account Type Id" = Gift Certificate. Require Pin Code = Y/N - if set to Y the gift card pin code will be compared to fin account pin code(they should be equal) Steps to use GC with OFBiz demo data: After you create GC for a party(e.g for DemoCustCompany) with Card Number: 12345 and Pin Number:123 then: - Create Financial Account: https://demo.hotwaxmedia.com/accounting/control/EditFinAccount Fin Account Type Id = Gift Certificate Status = Active Fin Account Code = 12345 Fin Account Pin = 123 - Create Fin Account Transaction: https://demo.hotwaxmedia.com/accounting/control/EditFinAccountTrans?finAccountId=10010 Fin Account Trans Type Id = Deposit Amount = 1000 (this amount should be grated that the order total) After that Fin Account available balance will be 1000. You can check this here: https://demo.hotwaxmedia.com/accounting/control/EditFinAccount?finAccountId=10000 - field "Available Balance". Then you are ready to create order and to specify the GC as a payment method. Hope this helps. Regards, Rashko Rejmer On Mon, 2008-01-21 at 03:02 -0800, Rupinder wrote: > I am again getting the error. > > Can you plz tell me the steps or procedure in detail, for creating and using > gift card. > > Starting from beginning: > I have created a gift card for a user, with the following: > Card Number: 12345 > Pin Number:123 > > Now what are the next steps, Please tell in detail if possible. > > > Rashko Rejmer wrote: > > > > Hi Rupinder, > > > > I think that you have created fin account that has the same account code > > as the gift card that you use during the check out process. > > > > You get the second error because you do not have sufficient fin account > > balance to cover the amount of the order that you want to create. > > > > You have to create fin account transaction(of type Adjustment or > > Deposit) with greater amount than the order that you want to create. > > You can create fin account transaction from > > Accounting -> Financial Account -> chose your fin account -> > > Transactions -> add Adjustment or Deposit transaction. > > > > Regards, > > Rashko Rejmer > > > > > > On Thu, 2008-01-17 at 23:06 -0800, Rupinder wrote: > >> Hi, > >> I am getting another error when using gift card as a payment method for > >> doing payments in ecommerce > >> application: > >> > >> "Error in authOrderPayments service: > >> org.ofbiz.service.GenericServiceException: Could not commit transaction > >> for > >> service [authOrderPayments] call: Roll back error, could not commit > >> transaction, was rolled back instead because of: Service Error > >> [authOrderPaymentPreference]: Error processing payment authorization: > >> org.ofbiz.base.util.GeneralException: Problems invoking payment > >> processor! > >> Will retry later. Order ID is: [WSCO10092 (Service target threw an > >> unexpected exception (null)) (Could not commit transaction for service > >> [authOrderPayments] call: Roll back error, could not commit transaction, > >> was > >> rolled back instead because of: Service Error > >> [authOrderPaymentPreference]: > >> Error processing payment authorization: > >> org.ofbiz.base.util.GeneralException: Problems invoking payment > >> processor! > >> Will retry later. Order ID is: [WSCO10092 (Service target threw an > >> unexpected exception (null)))" > >> > >> Plz help > >> > >> > >> Rashko Rejmer wrote: > >> > > >> > Hi Rupinder, > >> > > >> > If you want to avoid this error you have to create financial account > >> > with the same Fin Account Code as the gift card number. > >> > https://demo.hotwaxmedia.com/accounting/control/EditFinAccount > >> > > >> > You need positive and sufficient fin account balance. > >> > To achieve this create deposit or adjustment transaction to the fin > >> > account: > >> > > >> https://demo.hotwaxmedia.com/accounting/control/EditFinAccountTrans?finAccountId=10000 > >> > > >> > Hope this helps. > >> > > >> > Regards, > >> > Rashko Rejmer > >> > > >> > > >> > On Wed, 2008-01-16 at 23:14 -0800, Rupinder wrote: > >> >> Hi, > >> >> While using gift card as a payment method for doing payments in > >> ecommerce > >> >> application, I m getting the following errors: > >> >> > >> >> "The Following Occurred: > >> >> > >> >> Problem connecting to payment processor; we will continue to retry and > >> >> notify you by email." > >> >> > >> >> > >> >> Plz reply as soon as possible. > >> > > >> > > >> > > >> > > > > > > >
