public interface PayPalExpressConfiguration
extends org.broadleafcommerce.common.payment.service.PaymentGatewayConfiguration
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
getAdditionalConfig()
See the PayPal API to see what additional configs you can set:
https://developer.paypal.com/docs/classic/api/merchant/SetExpressCheckout_API_Operation_NVP/
|
Map<String,String> |
getAdditionalCustomFields()
The Paypal NVP API only allows a single field with custom logic in it: PAYMENTREQUEST_n_CUSTOM.
|
String |
getCancelUrl()
URL to which the buyer is returned if the buyer does not approve the use of PayPal to pay you.
|
String |
getLibVersion()
The PayPal API version
e.g.
|
String |
getPassword()
The PayPal Sandbox/Production Account Password
|
String |
getReturnUrl()
URL to which the buyer's browser is returned after choosing to pay with PayPal.
|
String |
getServerUrl()
The URL endpoint for the NVP API server
e.g.
|
PayPalShippingDisplayType |
getShippingDisplayType()
For digital goods, this field is required and must be set to 1.
|
String |
getSignature()
The PayPal Sandbox/Production Account Signature
|
String |
getTotalType()
Type declaration for the label to be displayed in MiniCart for UX.
|
String |
getUser()
The PayPal Sandbox/Production Account User
|
String |
getUserRedirectUrl()
The base URL to which you should redirect the user to after obtaining a transaction token
e.g.
|
getFailureReportingThreshold, getGatewayType, handlesAuthorize, handlesAuthorizeAndCapture, handlesCapture, handlesMultiplePayments, handlesMultipleShipment, handlesPartialCapture, handlesRecurringPayment, handlesRefund, handlesReverseAuthorize, handlesSavedCustomerPayment, handlesVoid, isPerformAuthorizeAndCapture, setFailureReportingThreshold, setPerformAuthorizeAndCaptureString getServerUrl()
String getUserRedirectUrl()
String getLibVersion()
String getPassword()
String getUser()
String getSignature()
String getReturnUrl()
String getCancelUrl()
PayPalShippingDisplayType getShippingDisplayType()
String getTotalType()
Map<String,String> getAdditionalConfig()
See the PayPal API to see what additional configs you can set: https://developer.paypal.com/docs/classic/api/merchant/SetExpressCheckout_API_Operation_NVP/
e.g. Map
This adds additional NVP items to the Paypal request that are ONLY pre-specified in the Paypal API docs.
Any other fields will be ignored. If you want to use completely custom fields, see getAdditionalCustomFields()
Map<String,String> getAdditionalCustomFields()
The Paypal NVP API only allows a single field with custom logic in it: PAYMENTREQUEST_n_CUSTOM. Because of this, all of the fields returned here are serialized together like so:
ccoc=true_12345|key1=value1|key2=value2|key3=value3
Note that Broadleaf uses a piece of this to determine if we should complete checkout on callback or not. This is done
as "ccoc=true_12345" where true is the value of PaymentRequestDTO.isCompleteCheckoutOnCallback(). So,
the minimum string that will be contained in the custom field is ccoc=true_12345, plus whatever other fields you have.
Also note that the entire custom field string after serialization is 256 characters. An IllegalArgumentException will be thrown otherwise.
Copyright © 2017. All rights reserved.