Skip to main content
GET
/
payment_methods
/
{id}
JavaScript
import Whop from '@whop/sdk';

const client = new Whop({
  apiKey: 'My API Key',
});

const paymentMethod = await client.paymentMethods.retrieve('payt_xxxxxxxxxxxxx', {
  member_id: 'mber_xxxxxxxxxxxxx',
});

console.log(paymentMethod.id);
{
  "id": "payt_xxxxxxxxxxxxx",
  "created_at": "2023-12-01T05:00:00.401Z",
  "payment_method_type": "acss_debit",
  "card": {
    "brand": "mastercard",
    "last4": "<string>",
    "exp_month": 42,
    "exp_year": 42
  }
}

Authorizations

Authorization
string
header
required

The app API key from an app from the /dashboard/developer page

Path Parameters

id
string
required

The ID of the PaymentMethod

Example:

"payt_xxxxxxxxxxxxx"

Query Parameters

member_id
string
required

The ID of the Member associated with the PaymentMethod

Example:

"mber_xxxxxxxxxxxxx"

Response

A successful response

A stored payment method used to process payments. This could be a credit/debit card, bank account, PayPal wallet, etc.

id
string
required

The ID of the payment method

Example:

"payt_xxxxxxxxxxxxx"

created_at
string<date-time>
required

The date and time the payment method was created

Example:

"2023-12-01T05:00:00.401Z"

payment_method_type
enum<string>
required

The payment method type of the payment method

Available options:
acss_debit,
affirm,
afterpay_clearpay,
alipay,
alma,
amazon_pay,
apple_pay,
au_becs_debit,
bacs_debit,
bancontact,
billie,
blik,
boleto,
card,
cashapp,
crypto,
eps,
fpx,
giropay,
google_pay,
grabpay,
ideal,
kakao_pay,
klarna,
konbini,
kr_card,
link,
mobilepay,
multibanco,
naver_pay,
nz_bank_account,
oxxo,
p24,
pay_by_bank,
payco,
paynow,
pix,
promptpay,
revolut_pay,
samsung_pay,
satispay,
sepa_debit,
sofort,
swish,
twint,
us_bank_account,
wechat_pay,
zip,
bizum,
capchase_pay,
kriya,
mondu,
ng_wallet,
paypay,
sequra,
scalapay,
vipps,
custom,
customer_balance,
gopay,
mb_way,
ng_bank,
ng_bank_transfer,
ng_card,
ng_market,
ng_ussd,
paypal,
payto,
qris,
rechnung,
south_korea_market,
kr_market,
shopeepay,
upi,
sunbit,
netbanking,
id_bank_transfer,
demo_pay,
shop_pay,
sezzle,
coinbase,
splitit,
platform_balance,
apple,
venmo,
unknown
card
object
required

The card data associated with the payment method, if its a debit or credit card.