-
Create a Vindicia Subscribe
PaymentMethodobject and set itstypetoPayPal. -
For the
PaymentMethod.payPalattribute in thePaymentMethodobject, construct a PayPal object as follows:- Set
PayPal.returnUrlto an existing URL to which the buyer will be redirected after Vindicia Subscribe successfully captures the transaction. - Set
PayPal.cancelUrlto an existing URL to which the buyer will be redirected if the transaction capture fails.
- Set
-
Construct and populate a
Transactionobject. -
Call
Transaction.authCaptureon the object. Vindicia Subscribe returns theTransactionobject with the following settings:Transaction.statusLog[0].statusis set toAuthorizationPending, meaning that the buyer must take action for this transaction to complete.Transaction.statusLog[0].payPalStatus.redirectUrlis set to a URL on the PayPal sandbox, at which you can view the simulated customer’s experience. Save that URL for testing on the Vindicia sandbox (see below).
Creating and Testing One-Time Transactions in the Vindicia Sandbox
Do not create PayPal transactions until Vindicia Client Services has notified you of the completion of your configuration on Vindicia’s sandbox (the Staging servers) for PayPal Express Checkout.
To create a one-time transaction with PayPal as the Payment Method:

