Skip to main content

PayPal Community

  • Dashboard
  • Send and Request
  • Wallet
  • Business
  • Help
Log in

Le forum de Communauté ne sera plus disponible à partir du 30 Juin 2025. Le Forum de la communauté n’est pas disponible pour les nouveaux messages ou les réponses; les articles précédents restent disponibles pour vérification. Afin de connaître les options d’assistance complètes, rendez-vous sur PayPal.com/HelpCenter

Si vous souhaitez signaler du contenu illégal et contraire au Règlement sur les services numériques de l’Union Européenne (DSA), veuillez cliquer ici.

since ‎Sep-26-2024
Country: Lithuania
Type: Personal
mr-dev
mr-dev Contributor
Contributor
1
Post
0
Kudos
0
Solutions
The Return
Active
View all
Latest Contributions by mr-dev
  • Topics mr-dev has Participated In
  • Latest Contributions by mr-dev

Saved paypal payment integration

by mr-dev Contributor in REST APIs
‎Sep-26-2024 04:50 AM
‎Sep-26-2024 04:50 AM
Hi, I have a few questions regarding PayPal saved payments integration. I was able to save the PayPal customer Id and vault id during the initial order, as outlined in the documentation: PayPal Documentation When a customer makes a second order, I pass the vault_id as the payment source like this: [ 'intent' => 'CAPTURE', 'purchase_units' => [ [ 'amount' => ['value' => $amount, 'currency_code' => $currencyCode], 'invoice_id' => $invoiceId, 'description' => $description, ], ], 'payment_source' => [ 'paypal' => [ 'vault_id' => $paypalVaultId, ] ], ] The order is successfully created, and the payment is captured immediately. However, the main issue is that the PayPal JS SDK receives the second order ID and throws a PAYMENT_ALREADY_DONE error. How can I correctly use the PayPal customerId and vault_id to avoid requiring confirmation from the customer and prevent the frontend from throwing any errors? My goal is to make any future orders submit by one click, so no need for customer to confirm any data etc. Now order is created in backend, but fontend is not able to handle it correctly. ... View more
Paypal Logo
  • Help
  • Contact Us
  • Security
  • Fees
  • © 1999-2025 PayPal, Inc. All rights reserved.
  • Privacy
  • Legal
  • Cookies
  • Policy Updates

The money in your balance is eligible for pass-through FDIC insurance.

The PayPal Cash Mastercard is issued by The Bancorp Bank pursuant to a license by Mastercard International Incorporated. The Bancorp Bank; Member FDIC.

Powered by Khoros