WooshPay OpenAPI
Product DocumentAPI ReferenceJS SDK ReferenceSaaS Platform Integration
Product DocumentAPI ReferenceJS SDK ReferenceSaaS Platform Integration
Back to WooshPay Website
  1. Wallets
  • Online payments
    • Quick Start
    • Integration overview
    • Wooshpay JS SDK
    • Wooshpay Checkout
    • Wooshpay Direct API
    • Payment Link
    • Authorize and capture
    • Build subscriptions integration
    • Testing cards
  • After the payment
    • Payouts
    • Webhook
    • Check the webhook signatures
    • 校验webhook签名
  • Add more payment methods
    • Supported payment method
    • Cards
    • Wallets
      • Alipay
      • Alipay HK
      • Apple Pay
      • Google Pay
      • Wechat Pay
      • 微信支付
      • Kakao Pay
      • DANA
      • Boost
      • Grabpay
      • Mcash
      • Touch'n Go
      • ShopeePay
      • UnionPay
      • 9Pay
      • OVO
      • GCash
      • TrueMoney
    • Bank redirects
      • Bancontact
      • BPI
      • Trustly
      • EPS
      • Giropay
      • iDEAL
      • Przelewy24
      • FPX
    • Buy Now Pay Later
      • Klarna
    • Bank Debits
      • Sepa Direct Debit
    • Bank Transfer
      • Bank Transfer in Europe
      • Bank Transfer in United Kingdom
      • Bank Transfer in Indonesia
    • QR Payments
      • QRIS
      • PromptPay
    • Real-time payments
      • PIX
      • PayNow
      • UPI
      • SPEI
  • More payment scenarios
    • Set up future payments
    • Save payment method during payment
  • SaaS platform integration
    • Shopify Plugin
    • Shopastro 星盘
    • WooCommerce
    • Shoplazza 店匠
    • Shopline Plugin
    • Sage Connection
  • Resources
    • Supported currencies
  1. Wallets

Apple Pay

Allow customers to securely make payments using Apple Pay on their iPhone, iPad, or Mac
Wooshpay users can accept Apple Pay on the web in Safari starting with iOS 10 and later, and macOS 10.12 and later.
Apple Pay is available to cardholders at participating banks in supported countries. Refer to Apple’s participating banks documentation to learn which banks and countries are supported.

Payment Flow#

Desktop:
Group 5089.png
Mobile:
Group 5086.png

How to integration#

For now, you can accept Apple Pay payments on the Web using Checkout. No additional passing parameter is required to use Apple Pay in Checkout. You can contact our supporters(support@wooshpay.com) to configure Apple Pay as a payment method.
After enabling Apple Pay, the checkout will automatically display the Apple Pay option based on the user's device compatibility.

Create a Session#

Request
{
    "mode": "payment",
    "success_url": "https://wooshpay.com/",
    "line_items": [
        {
            "price_data": {
                "currency": "USD",
                "unit_amount": 1,
                "nickname": "apple",
                "product_data": {
                    "name": "apple",
                    "description": "yummy yummy"
                },
                "billing_scheme": "testscheme",
                "lookup_key": "test_lookup_key"
            },
            "quantity": 1
        }
    ]
}
Response
{
    "id": "cs_1724722806920314880",
    "object": "checkout.session",
    "created": 1700040936000,
    "livemode": false,
    "currency": "USD",
    "customer": "",
    "mode": "payment",
    "status": "open",
    "url": "https://checkouttest.wooshpay.com/pay/cs_test_1724722806920314880?key=cGtfdGVzdF9OVEUxT0RRME5EUTBNelEzTURZeU1EWTNNakF4T2tWc1JGSlBUbWxQUm1KNmNWTkxWemhTUzFsM1RVVmtZVEUyTmpZMU9UVTVOekF3TmpFPQ==",
    "line_items": {
        "object": "list",
        "data": [
            {
                "id": "li_1724722806941286400",
                "object": "item",
                "currency": "USD",
                "description": "apple",
                "price": {
                    "id": "price_1724722806949675008",
                    "object": "price",
                    "created": 1700040936000,
                    "livemode": false,
                    "active": false,
                    "currency": "USD",
                    "nickname": "apple",
                    "product": "prod_1724722806962257920",
                    "type": "one_time",
                    "unit_amount": 1,
                    "billing_scheme": "testscheme",
                    "lookup_key": "test_lookup_key"
                },
                "quantity": 1,
                "amount_subtotal": 1,
                "amount_total": 1
            }
        ]
    },
    "payment_intent": "pi_1724722813983522816",
    "payment_method_types": [
        "card",
        "applepay"
    ],
    "payment_status": "unpaid",
    "success_url": "https://wooshpay.com/",
    "amount_subtotal": 1,
    "amount_total": 1,
    "billing_address_collection": "auto",
    "expires_at": 1700127335630,
    "payment_link": "",
    "client_secret": "pi_1724722813983522816_secret_YunR45Qw03vOohWtJr26Twfh"
}

Next step#

You can add more features to your integration as needed

Create a Webhook#

Listen to events on your WooshPay account so your integration can automatically trigger reactions. Create a webhook that mainly focuses on enabled_events and url.

Create a Refund#

Create a refund to repay funds to your customer. You can also perform partial refunds, but not every payment method supports them. A partial refund is when you refund only part of the original transaction amount.
Modified at 2024-03-11 02:00:37
Previous
Alipay HK
Next
Google Pay
Built with