Configuring PayPal

Purchase POST

To use PayPal as a payment method with a custom offers integration you will need to include a payment_method field nested under the payment object of the purchase post and add paypal as a string. Do not include label or payment_method in the payment object. Note that you can also remove card_type (or leave blank) from the request when creating with PayPal since that information is not shared.

Confirm with a solutions team member that subscription creation validation for expiration date and card type has been turned off prior to testing. 

Destination

Payment Object Example

},
"payment": {
"token_id": "7654321", // For PayPal this will be the Billing Plan ID
"cc_holder": "<AES_ENCRYPTED_CC_HOLDER_NAME>", // AES encrypted, then URL encoded
"payment_method": "PayPal"
},

For more information on integrating subscriptions with PayPal and the required Token ID, refer to PayPal developer documentation and support. 

Once a subscription has successfully created with PayPal as the payment method, this will be reflected Ordergroove at the customer and order level:

Screen_Shot_2022-11-18_at_3.32.01_PM.pngScreen_Shot_2022-11-18_at_3.31.33_PM.png

Payment Update API

You can also update an existing subscriber's default payment method to PayPal. To do this you will call Ordergroove's Payment Update API when a user updates their default payment method in the Subscriber Dashboard. Do not include label or payment_method in the payment object. Note that you can also remove card_type (or leave blank) from the request when creating with PayPal since that information is not shared.

The updated default payment information will apply to all subscriptions and upcoming orders.

The below lines will be added in addition to the current Payment Update JSON body for your integration, nested under payments.

Destination

Payment Object Example

},
"payment": {
"token_id": "7654321",
"cc_holder": "<AES_ENCRYPTED_CC_HOLDER_NAME>", // AES encrypted, then URL encoded
"payment_method": "PayPal"
},

 

Comments

0 comments

Please sign in to leave a comment.