MyWell Platform API PHP SDK

End-to-end SDK testing: tokenize payments, manage customers, transactions, subscriptions, and more

Configuration

API credentials are configured server-side via environment variables. All SDK calls are proxied through this server.

Card Tokenizer

Tokenize a credit card via FluidPay's hosted iframe. Test card: 4111 1111 1111 1111, any future expiry, any 3-digit CVV. Token expires in ~2 minutes.

Google Pay

Requires Chrome + HTTPS. Get a JWT from the Wallets tab first, then initialize the button here.
Google Pay button appears here

Apple Pay

Requires Safari on Apple device + HTTPS + verified domain.
Apple Pay button appears here (Safari only)

Current Token

Customers

Create Customer

POST /api/customer — SDK: CustomersApi.createCustomer()


Search Customers

POST /api/customer/search — SDK: CustomersApi.searchCustomers()

OR

Get Customer

GET /api/customer/:id — SDK: CustomersApi.getCustomer()


Update Customer

PUT /api/customer/:id — SDK: CustomersApi.updateCustomer()


Payment Methods

SDK: CustomersApi.getCustomerPaymentMethods(), addPaymentMethod(), removePaymentMethod()

CARD billing address (for Add Method)
OR new address

Addresses

SDK: CustomersApi.getCustomerAddresses(), addCustomerAddress(), removeCustomerAddress()

Transactions

Create Transaction

POST /api/transaction — SDK: TransactionsApi.createTransaction()


Search Transactions

POST /api/transaction/search — SDK: TransactionsApi.searchTransactions()

OR

Get Transaction

GET /api/transaction/:id — SDK: TransactionsApi.getTransaction()


Refund / Void

Subscriptions

Create Subscription

POST /api/subscription — SDK: SubscriptionsApi.createSubscription()


Search Subscriptions

POST /api/subscription/search — SDK: SubscriptionsApi.searchSubscriptions()

OR

Get Subscription

GET /api/subscription/:id — SDK: SubscriptionsApi.getSubscription()


Update Subscription

PUT /api/subscription/:id — SDK: SubscriptionsApi.updateSubscription()

Campuses

POST /api/campus/search — SDK: CampusesApi.searchCampuses()

OR

Funds

POST /api/fund/search — SDK: FundsApi.searchFunds()

OR

Wallet Setup

Google Pay — Get JWT

POST /api/wallet/googlepay/token — SDK: WalletSetupApi.getGooglePayToken()


Apple Pay — Domain Registration

SDK: WalletSetupApi.registerApplePayDomain(), unregisterApplePayDomain(), getApplePayMerchant()

Authentication

These endpoints are for initial integration setup. Normal API calls use the token configured in the server's environment variables.

Initial Token Exchange

GET /api/auth/access — SDK: AuthenticationApi.useAccessToken()


Refresh Token

GET /api/auth/refresh — SDK: AuthenticationApi.useRefreshToken()

Responses

Responses will appear here

Debug Log