this is do document the flow of payment services and state a best practices for payment gateways.
bold I am going to be sort of putting pieces in then get is all layed out.
accounting/servicedef/services_paymentmethod.xml
(org.ofbiz.accounting.payment.PaymentGatewayServices)
this is where you will find the services that show up in the productstores payment screen.
These are used in the demo data to allow sales to be processed without actually going thru a payment processor, like paypal.
- Credit Card Payment Authorization Service alwaysApproveCCProcessor
- Credit Card Payment Capture Service testCCCapture
- Credit Card Payment Re-Authorization Service alwaysApproveCCProcessor
Each of these need to changed to a service for the payment processor you are using, unless it is noted as a external payment system like paypal.
there is description is the xml file that will not be added here.
The following set of services are for testing
these can be used for Authorization Service and Re-Authorization
- testRandomAuthorize
- alwaysApproveCCProcessor
- alwaysApproveWithCaptureCCProcessor
- alwaysDeclineCCProcessor
- alwaysNsfCCProcessor
- testCCProcessor
- testCCProcessorWithCapture
these can be used for Capture Service
- testCCCaptureWithReAuth
- testCCProcessorCaptureAlwaysDecline
- testCCRelease
- testCCRefund
- testCCRefundFailure
- alwaysBadExpireCCProcessor
- badExpireEvenCCProcessor
- alwaysBadCardNumberCCProcessor
- alwaysFailCCProcessor
PaymentMethodServices
- deletePaymentMethod(DispatchContext, Map)
- makeExpireDate(DispatchContext, Map)
- createCreditCard(DispatchContext, Map)
- updateCreditCard(DispatchContext, Map)
- clearCreditCardData(DispatchContext, Map)
- createGiftCard(DispatchContext, Map)
- updateGiftCard(DispatchContext, Map)
- createEftAccount(DispatchContext, Map)
- updateEftAccount(DispatchContext, Map)
PaymentGatewayServices
- authOrderPaymentPreference(DispatchContext, Map)
- authOrderPayments(DispatchContext, Map)
- authPayment(LocalDispatcher, GenericValue, OrderReadHelper, GenericValue, BigDecimal, boolean, BigDecimal)
- getPaymentSettings(GenericValue, GenericValue, String, boolean)
- getPayToPartyId(GenericValue)
- getBillingInformation(OrderReadHelper, GenericValue, Map)
- releaseOrderPayments(DispatchContext, Map)
- releaseOrderPaymentPreference(DispatchContext, Map)
- processReleaseResult(DispatchContext, Map)
- capturePaymentsByInvoice(DispatchContext, Map)
- captureOrderPayments(DispatchContext, Map)
- processCaptureSplitPayment(DispatchContext, Map)
- captureBillingAccountPayment(DispatchContext, Map)
- captureBillingAccountPayments(DispatchContext, Map)
- capturePayment(DispatchContext, GenericValue, OrderReadHelper, GenericValue, BigDecimal)
- capturePayment(DispatchContext, GenericValue, OrderReadHelper, GenericValue, BigDecimal, GenericValue)
- saveError(LocalDispatcher, GenericValue, GenericValue, Map, String, String)
- storePaymentErrorMessage(DispatchContext, Map)
- processResult(DispatchContext, Map, GenericValue, GenericValue)
- processAuthResult(DispatchContext, Map, GenericValue, GenericValue)
- processAuthResult(DispatchContext, Map)
- needsNsfRetry(GenericValue, Map, GenericDelegator)
- processAuthRetryResult(DispatchContext, Map, GenericValue, GenericValue)
- processCaptureResult(DispatchContext, Map, GenericValue, GenericValue)
- processCaptureResult(DispatchContext, Map, GenericValue, GenericValue, String)
- processReAuthFromCaptureFailure(DispatchContext, Map, BigDecimal, GenericValue, GenericValue)
- processCaptureResult(DispatchContext, Map)
- refundPayment(DispatchContext, Map)
- processRefundResult(DispatchContext, Map)
- retryFailedOrderAuth(DispatchContext, Map)
- retryFailedAuths(DispatchContext, Map)
- retryFailedAuthNsfs(DispatchContext, Map)
- getCaptureTransaction(GenericValue)
- getAuthTransaction(GenericValue)
- getAuthTime(GenericValue)
- checkAuthValidity(GenericValue, String)
- savePgr(DispatchContext, GenericValue)
- savePaymentGatewayResponse(DispatchContext, Map)
- processManualCcAuth(DispatchContext, Map)
- processManualCcTx(DispatchContext, Map)
- verifyCreditCard(DispatchContext, Map)
- testProcessor(DispatchContext, Map)
- testProcessorWithCapture(DispatchContext, Map)
- testRandomAuthorize(DispatchContext, Map)
- alwaysApproveProcessor(DispatchContext, Map)
- alwaysApproveWithCapture(DispatchContext, Map)
- alwaysDeclineProcessor(DispatchContext, Map)
- alwaysNsfProcessor(DispatchContext, Map)
- alwaysBadExpireProcessor(DispatchContext, Map)
- badExpireEvenProcessor(DispatchContext, Map)
- alwaysBadCardNumberProcessor(DispatchContext, Map)
- alwaysFailProcessor(DispatchContext, Map)
- testRelease(DispatchContext, Map)
- testCapture(DispatchContext, Map)
- testCCProcessorCaptureAlwaysDecline(DispatchContext, Map)
- testCaptureWithReAuth(DispatchContext, Map)
- testRefund(DispatchContext, Map)
- testRefundFailure(DispatchContext, Map)