Paypal logo5/11/2023 The token provided is not currently supported. If you experience errors, use these codes and their descriptions to troubleshoot: Issue Once you've retrieved the payer's payment method token ID, refer to Use payment method token with checkout to create your order. You can make a DELETE request to delete the payment token from the vault.Ģ. You can make a GET request to this link to retrieve data about the saved method. Payment method details and status for given payment token.You can make a GET request to view the state of your setup token and payment method details. You can make a POST request to use an approved setup token to vault the underlying method and generate a payment token. Use this link to take your customer through a PayPal hosted approval flow. Update the cancel_url value with the URL where the customer is redirected after the cancelling or quitting the flow.Ī successful request results in the following:.Update the return_url value with the URL where the customer is redirected after approving and leaving the flow.Complete the rest of the source object as appropriate for your use case and business. Change Request-Id to a unique alphanumeric set of characters, for example, a time stamp.Change Access-Token to your sandbox access token.To create a setup token for PayPal that triggers a payer action, copy the following code and modify it: Sample API request Tip For a customer with previously stored payment_sources, pass the previously stored PayPal-generated customer_id in the setup-token request so that additional payment_sources can be linked to this customer. When vaulting PayPal for the first time for a customer, the response to the setup-token request will return both the customer_id that's PayPal-generated and the vault_id that you should store within your system for future use. The payer is redirected to the approve URL.A PAYER_ACTION_REQUIRED status is returned from the initial POST on the setup-tokens call.With the initial POST on setup-tokens, the following actions are completed: Create setup token to save PayPal as payment methodĬreating a setup token to vault PayPal as a payment method requires the payer to authenticate and approve the creation of a billing agreement. Under SANDBOX APP SETTINGS, check Accept payments and then select Advanced options.Ģ. Under REST API apps, select your app name. The Vault Payment Method API requires SAQ D PCI Compliance for API only integration.Įnsure your account is enabled for vault in both sandbox and production.This server-side integration uses the Vault Payment Method REST API. Contact your account manager for details.
0 Comments
Leave a Reply. |