Before you begin
- A platform secret key from Connect → API keys, kept on your server.
- An active connection in the same mode. The platform key and the merchant’s connection both grant each permission an operation needs:
@ionicfi/sdk0.4.1 or later for the TypeScript examples, installed from npm.
Create the merchant’s customer
Save a card for the customer
Save a card with the customer’s consent using a SetupIntent and a Payment Block on your page. See Save cards for connected accounts. To offer saving during a payment instead, see Accept payments for connected accounts.List the customer’s saved cards
Choose the default card
An invoice that collects automatically charges the customer’s default payment method when the invoice names none. A subscription that collects automatically sets its owndefault_payment_method.
reason.
Customer events
A platform webhook endpoint receives a merchant’scustomer.created,
customer.updated, customer.deleted, and customer.restored events when that
merchant’s connection grants customers:read. The event’s account field names
the merchant. See Webhooks for platforms.
Keep customer data with the correct merchant
What’s next
Save cards
Save a card to a connected account’s customer with consent.
Read subscriptions and invoices
Read a connected account’s billing and gate access with entitlement.

