E-Payment Integrator 2020 Python Edition

Questions / Feedback?

set_checkout Method

Call this method to begin the Express Checkout process and fetch a token from PayPal which will encode transaction details.

Syntax

def set_checkout() -> None: ...

Remarks

This method queries PayPal for a response_token and begins the Express Checkout process. This token is used to identify the transaction on the PayPal network.

The following properties are required before calling SetCheckout:

After calling this method, you should check the ack property to determine whether the request was successful. If so, append the response_token value to the following PayPal URL, and redirect your customer there.

https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=

The customer will sign in and fill out payment details on PayPal's site. Afterwards PayPal will automatically redirect the customer back to the return_url you specified, along with the updated token appended to the URL. This token should be parsed from the URL and set as the token property. You may then proceed in calling get_checkout_details and checkout_payment.

Copyright (c) 2021 /n software inc. - All rights reserved.
E-Payment Integrator 2020 Python Edition - Version 20.0 [Build 7941]