Accéder directement au contenu
Connectez-vous
Image du logo Stripe
/
Créez un compte
Connectez-vous
Accueil
Payments
Automatisation des opérations financières
Services bancaires
Outils de développement
Options sans code
Tous les produits
Accueil
Payments
Automatisation des opérations financières
Accueil
Payments
Automatisation des opérations financières
Services bancaires
Outils de développement
Aperçu
Démarrer
À propos des paiements Stripe
Start an integration
Payment Links
Checkout
Web Elements
Mobile Elements
Payment scenarios
During the payment
Après le paiement
Ajouter des moyens de paiement
    Aperçu
    Options d'intégration des moyens de paiement
    Multiple configurations on dynamic payment methods
    A/B testing on dynamic payment methods
    Payment method targeting on dynamic payment methods
    Register payment method domains
    Prélèvements bancaires
    Virement avec redirection bancaire
    Virements bancaires
    Paiement différé
    Virements (Sources)
    Paiements en temps réel
    Paiements échelonnés par carte régionale
    Bons d'achat
    Portefeuilles
      Alipay
      Amazon Pay
      Apple Pay
      Cash App Pay
      Google Pay
      GrabPay
      PayPal
        Connecter votre compte PayPal
        Accepter un paiement
        Configurer des paiements différés
        Choisir une préférence de règlement
        Paiements contestés
        Rapprochement des virements
        Langues prises en charge
      MobilePay
      Secure Remote Commerce
      WeChat Pay
      Revolut Pay
Autres scénarios de paiement
Paiement accéléré avec Link
Other Stripe products
Connect
Terminal
Radar
Financial Connections
Cryptomonnaie
Identity
Climate
Ressources
À propos des API
Guides d'implémentation
Aide en matière de réglementation
Test
AccueilPaymentsWalletsPayPal

Note

Cette page n'est pas encore disponible dans cette langue. Nous faisons tout notre possible pour proposer notre documentation dans davantage de langues et nous vous fournirons la version traduite dès qu'elle sera disponible.

Accept a PayPal payment

Learn how to accept PayPal payment, a digital wallet popular with businesses in Europe.

PayPal is a reusable, immediate notification payment method where customers are required to authenticate their payment. To make a payment using PayPal, customers are redirected from your website to PayPal where they choose a funding source (for example, PayPal wallet, linked card, or buy-now-pay-later, provided by PayPal) and authenticate the payment. Upon completion of the authorization process, the customer is redirected back to your website.

Stripe Checkout and the Express Checkout Element both support the standalone PayPal button. This button allows a customer to reuse their shipping and billing information previously saved at PayPal so that they don’t have to enter it again at the time of a purchase. If they click this button, a customer can approve the payment from a pop-up (?window/modal/redirected/embedded) so they remain on your website throughout the entire checkout process. Stripe only supports one-off (non-recurring payments) PayPal payments through this button.

 

Mise en garde

Stripe automatically presents your customers payment method options by evaluating their currency, payment method restrictions, and other parameters. We recommend that you configure your payment methods from the Stripe Dashboard using the instructions in Accept a payment.

If you want to continue manually configuring the payment methods you present to your customers with Checkout, use this guide (for example, to accept payments in Subscription mode). Otherwise, migrate to the dashboard.

Stripe Checkout shows PayPal either as a standard payment method or as a standalone button, depending on which option is more likely to increase the conversion rate.

Determine compatibility

Supported business locations: Europe, GB

Supported currencies: eur, gbp, usd, aud, cad, hkd, czk, dkk, nok, pln, sek, chf, sgd, nzd

Presentment currencies: eur, gbp, usd, aud, cad, hkd, czk, dkk, nok, pln, sek, chf, sgd, nzd

Payment mode: Yes

Setup mode: Yes

Subscription mode: Yes

A Checkout Session must satisfy all of the following conditions to support PayPal payments:

  • Prices for all line items must be in the same currency. If you have line items in different currencies, create separate Checkout Sessions for each currency.

Accept a payment

Note

Build an integration to accept a payment with Checkout before using this guide.

Use this guide to learn how to enable PayPal—it shows the differences between accepting a card payment and using PayPal.

Enable PayPal as a payment method

When creating a new Checkout Session, do the following:

  1. Add paypal to the list of payment_method_types.
  2. Make sure all your line_items use the same currency.
Stripe::Checkout::Session.create({ mode: 'payment', payment_method_types: ['card'], payment_method_types: ['card', 'paypal'], line_items: [{ price_data: { currency: 'usd', product_data: { name: 'T-shirt', }, unit_amount: 2000, }, quantity: 1, }], success_url: 'https://example.com/success', cancel_url: 'https://example.com/cancel', })

Fulfill your orders

After accepting a payment, learn how to fulfill orders.

Test your integration

You don’t need to connect your PayPal business account to test the integration. However, make sure to connect your PayPal and Stripe accounts when you’re ready to activate live mode payments.

When testing your Checkout integration, select PayPal as the payment method and click Pay.

To simulate the most common integration and failure scenarios for PayPal payments, pass email values that match the patterns described in these test scenarios.

Test scenarios

Email patternScenarioExplanation
.*payee_account_restricted@.*Merchant account restrictedCapturing or authorizing a payment fails with a payment_method_unexpected_state error if your merchant account is restricted by PayPal. Provide an email matching this pattern at time of authorization to fail the authorization.
.*transaction_refused@.*Transaction refusedCapturing a payment fails with a payment_method_provider_decline error if the transaction is refused by PayPal.
.*instrument_declined@.*Payment instrument declinedCapturing a payment fails with a payment_method_provider_decline error if the instrument presented was either declined by the processor or bank, or it can’t be used for this payment.
.*lost_dispute@.*Lost disputeOn capture, the payment intent first succeeds only to be disputed. The dispute created is already lost and the merchant can’t submit evidence on the Stripe Dashboard.
.*authorization_expired@.*Manually capturing an authorized paymentCapturing an authorized payment fails with a capture_charge_authorization_expired error if the authorization has already expired.

Handle refunds and disputes

Learn more about PayPal disputes and refunds.

Cette page vous a-t-elle été utile ?
Besoin d'aide ? Contactez le service d'assistance.
Découvrez nos tutoriels pour les développeurs.
Consultez notre journal des modifications des produits.
Des questions ? Contactez l'équipe commerciale.
Propulsé par Markdoc
Vous pouvez vous désabonner à tout moment. Lisez notre politique de confidentialité.
Sur cette page
Determine compatibility
Accept a payment
Test your integration
Handle refunds and disputes
Produits utilisés
Payments
Checkout
Stripe Shell
Test mode
Welcome to the Stripe Shell! Stripe Shell is a browser-based shell with the Stripe CLI pre-installed. Log in to your Stripe account and press Control + Backtick (`) on your keyboard to start managing your Stripe resources in test mode. - View supported Stripe commands: - Find webhook events: - Listen for webhook events: - Call Stripe APIs: stripe [api resource] [operation] (e.g., )
Le Shell Stripe est plus optimisé sur la version bureau.
$