reference transactions. Contact Vindicia Client Services for more information.
Note: Not all merchants will be authorized to obtain the referenceId from PayPal. Work with your PayPal representative to obtain the right to use this process.
If the PaymentMethod exists and contains a ReferenceID for PayPal, Subscribe uses that PaymentMethod. If thePaymentMethod does not exist, or does not contain a Reference ID for PayPal, Subscribe returns a URL in the authStatus field. The consumer can be redirected to the URL to make a payment.
Set up recurring billing in an AutoBill
- Set the following for the PayPal payment method (
PaymentMethodobject and itspayPalattribute) onAutoBill, or on theAccountobject if the settings are not specified onAutoBill:- Set
emailAddressto the subscriber’s email address. - Set
returnUrlto an existing URL on your site to which the customer will be redirected after a successful authentication with PayPal. - Set
cancelUrlto an existing URL on your site to which the customer will be redirected after a failed authentication, that is, if PayPal does not authorize the payment information.
- Set
- Call
update()to create theAutoBillobject, and return aTransactionStatusobject. TheTransactionStatusobject must contain a URL in theredirectUrlfield, to which the customer will be redirected to complete the PayPal payment process. Without completion of this step, recurring billing will not begin.
Retrieve the redirectUrl
AutoBill object will have status: PendingCustomerAction. The object is dormant and will not perform any billing.
At the PayPal site, the customer logs in and agrees to the contract for recurring billing. When the process is complete, the customer clicks a button that takes them to your success page (returnUrl) or failure page (cancelUrl). From the success page, make the finalizePayPalAuth() call to inform Subscribe of successful authorization of the PayPal-based payment method. After receiving the successful authorization, the status of the AutoBill object changes to New , indicating that the subscription has started and that the AutoBill will start billing the customer according to the specified dates.
Finalize the PayPal payment method authorization
AutoBill object, no action will be required from the customer. PayPal will notify the customer when the transaction is complete. That notification is in addition to any communication issued by your organization through the Subscribe email notification system.
For more information, see the Using Subscribe with PayPal white paper, available from Vindicia Client Services.
Parent topic:Working with AutoBills
