Apple Pay
Payment Flow
How to integration
Create a Session
{
"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
}
]
}
{
"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
Create a Webhook
Create a Refund
Modified at 2024-03-11 02:00:37