Lewati ke konten
Buat akun
atau
Masuk
Logo Dokumen Stripe
/
Tanya AI
Buat akun
Masuk
Mulai
Pembayaran
Pendapatan
Platform dan situs belanja online
Manajemen uang
Sumber daya pengembang
Gambaran Umum
Billing
Gambaran umumTentang Billing API
Subscriptions
    Gambaran umum
    Cara kerja langganan
    Mulai cepat
    Contoh penggunaan
    Buat integrasi Anda
    Fitur langganan
      Invoice langganan
      Jadwal berlangganan
      Skema biaya langganan
      Model biaya rutin
      Sematkan tabel skema biaya
      Mulai langganan
      Atur kuantitas
      Tetapkan siklus tagihan
      Mundurkan tanggal langganan
      Berlangganan beberapa item
      Atur periode uji coba
      Terapkan kupon
      Migrasikan langganan ke Stripe
      Cara prorata kredit dihitung
      Pembayaran langganan
      Metode pembayaran langganan
        ACH Direct Debit
        Amazon Pay
        Debit Langsung Bacs di Kerajaan Inggris
        Transfer bank
        Debit Langsung BECS di Australia
        Cash App Pay
        PayPal
        Revolut Pay
        Kartu Korea
        Kakao Pay
        Naver Pay
        Debit praotorisasi di Kanada
        Debit Langsung SEPA di UE
        iDEAL dengan Debit Langsung SEPA
        Bancontact dengan Debit Langsung SEPA
      Integrasikan dengan pemrosesan pembayaran pihak ketiga
      Metode penagihan
      Autentikasi Pelanggan yang Kuat (SCA)
      Kelola langganan
      Ubah langganan
      Kelola pembaruan yang menunggu
    Penetapan hak
    Analitik
Invoicing
Tagihan berbasis penggunaan
Penawaran Harga
Manajemen pelanggan
Billing with other products
Pemulihan pendapatan
Otomatisasi
Coba integrasi Anda
Pajak
Gambaran umum
Use Stripe tax
Manage compliance
Pelaporan
Gambaran umum
Pilih laporan
Configure reports
API laporan
Melaporkan untuk beberapa akun
Pengakuan pendapatan
Data
Gambaran umumSkema
Laporan custom
Data Pipeline
Pengelolaan data
BerandaPendapatanSubscriptionsSubscription featuresSubscription payment methods

Set up a subscription with Amazon Pay

Learn how to create and charge for a subscription with Amazon Pay.

Use this guide to set up a subscription using Amazon Pay as a payment method.

You can use the Checkout API to create and confirm a subscription with a prebuilt checkout page.

Create a product and price
Dashboard

Products represent the item or service you’re selling. Prices define how much and how frequently you charge for a product. This includes how much the product costs, what currency you accept, and whether it’s a one-time or recurring charge. If you only have a few products and prices, create and manage them in the Dashboard.

This guide uses a stock photo service as an example and charges customers a 15 USD monthly subscription. To model this:

  1. Navigate to the Add a product page.
  2. Enter a Name for the product.
  3. Enter 15 for the price.
  4. Select USD as the currency.
  5. Click Save product.

After you create the product and the price, record the price ID so you can use it in subsequent steps. The pricing page displays the ID and it looks similar to this: price_G0FvDp6vZvdwRZ.

Create a Checkout Session
Server-side

Your customer must authorize you to use their Amazon account for future payments through Stripe Checkout. This allows you to accept Amazon payments. Add a checkout button to your website that calls a server-side endpoint to create a Checkout Session.

index.html
<html> <head> <title>Checkout</title> </head> <body> <form action="/create-checkout-session" method="POST"> <button type="submit">Checkout</button> </form> </body> </html>

Create a Checkout Session in subscription mode to collect the required information. After creating the Checkout Session, redirect your customer to the URL that the response returns.

Command Line
cURL
curl https://api.stripe.com/v1/checkout/sessions \ -u "
sk_test_BQokikJOvBiI2HlWgH4olfQ2
:"
\ --data-urlencode success_url="https://example.com/success" \ --data-urlencode cancel_url="https://example.com/cancel" \ -d "line_items[0][price]"={{RECURRING_PRICE_ID}} \ -d "line_items[0][quantity]"=1 \ -d "payment_method_types[0]"=card \ -d "payment_method_types[1]"=amazon_pay \ -d mode=subscription

Test your integration
Server-side

Select Amazon Pay as the payment method and tap Subscribe. You can test the successful payment case by authenticating the payment on the redirect page. The PaymentIntent transitions from requires_action to succeeded.

Apakah halaman ini membantu?
YaTidak
Butuh bantuan? Hubungi Tim CS.
Bergabunglah dengan program akses awal kami.
Lihat log perubahan kami.
Ada pertanyaan? Hubungi Bagian Penjualan.
LLM? Baca llms.txt.
Dijalankan oleh Markdoc