UseePay Open API
UseePay PortalMechant Dashboard
Product Docs
Product Docs
  • V2.0
  • V1.0
UseePay PortalMechant Dashboard
Product Docs
Product Docs
  • V2.0
  • V1.0
  1. About Payment Methods
  • Intergration
    • Welcome to the UseePay Demo Page
    • About Payment Methods
      • Card
      • Apple Pay Web Integration (API Integration)
      • Apple Pay(Hosted Checkout)
      • Google Pay
      • Klarna
      • Naver pay
      • Kakao Pay
      • Toss Pay
      • Payco
      • Affirm
      • Blik
      • trustly
    • subscription
      • Get started with Subscription
    • online payment
      • Get started with online payments
    • Payment Capabilities
      • Adaptive Price
  • developer
    • Introduction
    • Authentication
    • Errors
    • error code
      • last_payment_error documentation
    • Best Integration
      • Quickly create a paymentIntent for a subscription
      • Auto-Charge Subscription Guide
    • Payment Intents
      • Payment Intent Overview
      • Quickly create a paymentIntent
      • Create a PaymentIntent
      • Retrieve a PaymentIntent
      • Update a PaymentIntent
      • Confirm a PaymentIntent
      • Cancel a PaymentIntent
      • Capture a PaymentIntent
      • List all payment intents
    • Customers
      • Create a customer
      • Retrieves a customer
      • Update a customer
      • List all customers
    • Subscriptions
      • Create a subscription
      • Retrieves a subscription
      • Update a subscription
      • List all subscriptions
      • Cancel a subscription
    • Invoices
      • Create a invoice
      • Retrieves a invoice
      • List all invoices
      • Pay a invoice
    • Payment Methods
      • Create a payment method
      • Retieve Payment Method Session
      • Retrieves a payment method
      • Update a payment method
      • List all payment methods
    • Mandates
      • Create a mandate
      • Retrieves a mandate
      • List all mandates
    • Refunds
      • Create a refund
      • Retrieves a refund
      • List all refunds
    • Webhooks
      • Webhook events
      • Webhook Activation/Signature Verification Steps
      • Create a webhook
      • Retrieves a webhook
      • Update a webhook
      • List all webhooks
    • Embedded Checkout
      • Payment Elements
    • case
    • objects
    • About Testing
      • Test Cards
      • ApplePay&GooglePay
    • Payment Method Configuration
      • Retieve Payment Method Configuration
    • Schemas
      • Customer
      • Address
      • Shipping
      • Error
      • PaymentIntentCreateRequest
      • DeviceData
      • Order
      • Product
      • PaymentMethodOptions
      • RiskControlOptions
      • Mandate
      • PaymentIntent
      • PaymentMethod
      • Billing
      • Card
      • AliPay
      • Wallet
      • Klarna
      • WechatPay
      • Refund
      • Subscription
      • Recurring
      • PriceData
      • SubscriptionItem
      • Invoice
      • NextAction
      • Webhook
      • CollectableOptions
      • PaymentLink
      • last_payment_error
      • discount_period_config
  • message
    • Messaging Element
  • FAQ
    • Unable to receive Webhook notifications
UseePay PortalMechant Dashboard
Product Docs
Product Docs
  • V2.0
  • V1.0
UseePay PortalMechant Dashboard
Product Docs
Product Docs
  • V2.0
  • V1.0
  1. About Payment Methods

Apple Pay Web Integration (API Integration)

In Internal Testing

Apple Pay Web Integration#

UseePay Payment Gateway
This document describes how to integrate Apple Pay on the Web using the UseePay payment gateway.
It is intended for external merchants and developers.

1. Overview#

Apple Pay Web integration allows customers to complete payments directly on the merchant website (onsite checkout) without redirection.

High-Level Flow#

1.
Merchant obtains Apple Pay domain certificate from UseePay
2.
Merchant backend retrieves Apple Pay configuration from UseePay
3.
Frontend initializes ApplePaySession using provided configuration
4.
Merchant validation is completed via UseePay
5.
Apple Pay token is submitted to UseePay to complete payment

2. Prerequisites#

Before integration, ensure the following are completed:
Apple Pay is enabled for your UseePay merchant account
Apple Pay merchant identifier is registered
Domain verification certificate is issued and installed
HTTPS is enabled on the payment page domain
Integration is performed on Safari (macOS / iOS)

3. Integration Architecture#

Frontend → Merchant Backend → UseePay → Apple
Frontend must not call UseePay APIs directly
Merchant backend is responsible for:
Configuration retrieval
Session validation
Payment confirmation

4. Step-by-Step Integration#

Step 1: Retrieve Apple Pay Configuration#

(Backend → UseePay)
API
POST /v1/payment_method_configurations/apple_pay
Purpose
Retrieve required Apple Pay parameters:
merchantIdentifier
Supported card networks
Authentication methods
Response Example
{
  "apple_pay": {
    "configuration": {
      "merchant_identifier": "merchant.com.example.useepay",
      "merchant_name": "Example Store"
    },
    "allowed_card_networks": ["visa", "masterCard", "amex"],
    "allowed_card_auth_methods": ["supports3DS", "supportsCredit"]
  }
}
Step 2: Provide Configuration to Frontend
(Backend → Frontend)
Merchant backend should expose a simplified configuration:
{
  "payment_method": "applepay",
  "merchant_identifier": "merchant.com.example.useepay",
  "supported_networks": ["visa", "masterCard", "amex"],
  "merchant_capabilities": ["supports3DS", "supportsCredit"]
}
Step 3: Check Apple Pay Availability
(Frontend)
If false, Apple Pay should not be displayed.
Step 4: Build ApplePayPaymentRequest
(Frontend)
Step 5: Merchant Validation
(Frontend → Backend → UseePay → Apple)
Frontend callback:
Backend calls:
Step 6: Payment Authorization & Confirmation
(Frontend → Backend → UseePay)
Frontend callback:
Backend confirms payment:

5. Security & Compliance#

Apple Pay tokens must not be modified
All UseePay API calls must occur on the merchant backend
Apple Pay integration complies with PCI DSS SAQ-A
Domain verification and HTTPS are mandatory

6. Common Integration Issues#

IssueCauseResolution
Apple Pay button not visibleUnsupported deviceUse Safari with active card
Merchant validation failureDomain mismatchEnsure hostname matches
Invalid merchantIdentifierIncorrect configurationVerify with UseePay
Session validation errorRedirect or cachingDisable redirects & caching

7. Testing Checklist#

Apple Pay button appears on supported devices
Merchant validation succeeds
Apple Pay token received correctly
Payment status is succeeded
Thank-you page displayed

8. Support#

For Apple Pay activation, domain verification, or technical support, please contact:
UseePay Support Team
Modified at 2025-12-25 03:44:31
Previous
Card
Next
Apple Pay(Hosted Checkout)
Built with