You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

this is do document the flow of payment services and state a best practices for payment gateways.
I am going to be sort of putting pieces in then get is all layed out.

there are two forms of payments services those that deal with the gateway direct and do CC authorization internally to ofbiz, like payflow
and those that the payment process like getting the cc information and verifying payment are done externally to ofbiz, like paypal.

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 payflow.

  • Credit Card Payment Authorization Service alwaysApproveCCProcessor
  • Credit Card Payment Capture Service testCCCapture (declines all orders < 100.00; approves all orders >= 100.00)
  • 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.
    Example from the IcsPaymentServices.java
  • Credit Card Payment Authorization Service ccAuth
  • Credit Card Payment Capture Service ccCapture
  • Credit Card Payment Re-Authorization Service ccReAuth

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 – this one actually calls PaymentGatewayServices.getAuthTransaction
  • 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)

org.ofbiz.accounting.thirdparty --Specific Gateway services.

  • No labels