Skip to content

Instantly share code, notes, and snippets.

@congthien
Created July 21, 2023 02:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save congthien/dca9a94f323c24a3faa9dad72108db39 to your computer and use it in GitHub Desktop.
Save congthien/dca9a94f323c24a3faa9dad72108db39 to your computer and use it in GitHub Desktop.
POST /v1/payment_intents
{
"id": "pi_3N5iWIHwAXz8vixA0KCXvZ1U",
"object": "payment_intent",
"amount": 10890,
"amount_capturable": 10890,
"amount_details": {
"tip": {
}
},
"amount_received": 0,
"application": null,
"application_fee_amount": null,
"automatic_payment_methods": null,
"canceled_at": null,
"cancellation_reason": null,
"capture_method": "manual",
"charges": {
"object": "list",
"data": [
{
"id": "ch_3N5iWIHwAXz8vixA0hBsNrdL",
"object": "charge",
"amount": 10890,
"amount_captured": 0,
"amount_refunded": 0,
"application": null,
"application_fee": null,
"application_fee_amount": null,
"balance_transaction": null,
"billing_details": {
"address": {
"city": "Kirkland",
"country": "US",
"line1": "13318 88th Pl NE",
"line2": "",
"postal_code": "98034",
"state": "WA"
},
"email": "flem16@gmail.com",
"name": "Ryan Fleming",
"phone": "4258294189"
},
"calculated_statement_descriptor": "TIMOGIFTS",
"captured": false,
"created": 1683607886,
"currency": "usd",
"customer": "cus_NrRPursvCwGCrb",
"description": " - ",
"destination": null,
"dispute": null,
"disputed": false,
"failure_balance_transaction": null,
"failure_code": null,
"failure_message": null,
"fraud_details": {
},
"invoice": null,
"livemode": true,
"metadata": {
"checkout_token": "edcde375127440baab62310a23a7cf0c",
"customer_email": "flem16@gmail.com",
"shop_id": "10129653",
"owner_email": "support@timogifts.com",
"order_id": "0",
"customer_billing_address": " 13318 88th Pl NE Kirkland, 98034 United States",
"checkout_id": "44633892",
"customer_billing_name": "Ryan Fleming"
},
"on_behalf_of": null,
"order": null,
"outcome": {
"network_status": "approved_by_network",
"reason": null,
"risk_level": "normal",
"seller_message": "Payment complete.",
"type": "authorized"
},
"paid": true,
"payment_intent": "pi_3N5iWIHwAXz8vixA0KCXvZ1U",
"payment_method": "pm_1N5iWGHwAXz8vixAMUxWbcmn",
"payment_method_details": {
"card": {
"brand": "mastercard",
"checks": {
"address_line1_check": "pass",
"address_postal_code_check": "pass",
"cvc_check": "pass"
},
"country": "US",
"exp_month": 4,
"exp_year": 2028,
"fingerprint": "7IzkG8D2Je3q2hos",
"funding": "credit",
"installments": null,
"last4": "1972",
"mandate": null,
"network": "mastercard",
"network_token": {
"used": false
},
"three_d_secure": null,
"wallet": null
},
"type": "card"
},
"receipt_email": null,
"receipt_number": null,
"receipt_url": "https://pay.stripe.com/receipts/payment/CAcQARoXChVhY2N0XzFJdkpnYUh3QVh6OHZpeEEoz6LnogYyBmbsSF5ZvjosFusVSDGPQbpTJAsGZ4AbhQWER3TUhwOhBxJuyz9b-Raqj476JB5f1QAtFwE",
"refunded": false,
"refunds": {
"object": "list",
"data": [
],
"has_more": false,
"total_count": 0,
"url": "/v1/charges/ch_3N5iWIHwAXz8vixA0hBsNrdL/refunds"
},
"review": null,
"shipping": {
"address": {
"city": "Kirkland",
"country": "US",
"line1": "13318 88th Pl NE",
"line2": "",
"postal_code": "98034",
"state": "Washington"
},
"carrier": null,
"name": "Ryan Fleming",
"phone": "4258294189",
"tracking_number": null
},
"source": null,
"source_transfer": null,
"statement_descriptor": "TIMOGIFTS",
"statement_descriptor_suffix": null,
"status": "succeeded",
"transfer_data": null,
"transfer_group": null
}
],
"has_more": false,
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_3N5iWIHwAXz8vixA0KCXvZ1U"
},
"client_secret": "pi_3N**********************_******_*********************KL73",
"confirmation_method": "manual",
"created": 1683607886,
"currency": "usd",
"customer": "cus_NrRPursvCwGCrb",
"description": " - ",
"invoice": null,
"last_payment_error": null,
"latest_charge": "ch_3N5iWIHwAXz8vixA0hBsNrdL",
"livemode": true,
"metadata": {
"checkout_token": "edcde375127440baab62310a23a7cf0c",
"customer_email": "flem16@gmail.com",
"shop_id": "10129653",
"owner_email": "support@timogifts.com",
"order_id": "0",
"customer_billing_address": " 13318 88th Pl NE Kirkland, 98034 United States",
"checkout_id": "44633892",
"customer_billing_name": "Ryan Fleming"
},
"next_action": null,
"on_behalf_of": null,
"payment_method": {
"id": "pm_1N5iWGHwAXz8vixAMUxWbcmn",
"object": "payment_method",
"billing_details": {
"address": {
"city": "Kirkland",
"country": "US",
"line1": "13318 88th Pl NE",
"line2": "",
"postal_code": "98034",
"state": "WA"
},
"email": "flem16@gmail.com",
"name": "Ryan Fleming",
"phone": "4258294189"
},
"card": {
"brand": "mastercard",
"checks": {
"address_line1_check": "pass",
"address_postal_code_check": "pass",
"cvc_check": "pass"
},
"country": "US",
"exp_month": 4,
"exp_year": 2028,
"fingerprint": "7IzkG8D2Je3q2hos",
"funding": "credit",
"generated_from": null,
"last4": "1972",
"networks": {
"available": [
"mastercard"
],
"preferred": null
},
"three_d_secure_usage": {
"supported": true
},
"wallet": null
},
"created": 1683607885,
"customer": "cus_NrRPursvCwGCrb",
"livemode": true,
"metadata": {
"checkout_token": "edcde375127440baab62310a23a7cf0c"
},
"type": "card"
},
"payment_method_options": {
"card": {
"installments": null,
"mandate_options": null,
"network": null,
"request_three_d_secure": "automatic"
}
},
"payment_method_types": [
"card"
],
"processing": null,
"receipt_email": null,
"review": null,
"setup_future_usage": null,
"shipping": {
"address": {
"city": "Kirkland",
"country": "US",
"line1": "13318 88th Pl NE",
"line2": "",
"postal_code": "98034",
"state": "Washington"
},
"carrier": null,
"name": "Ryan Fleming",
"phone": "4258294189",
"tracking_number": null
},
"source": null,
"statement_descriptor": "TIMOGIFTS",
"statement_descriptor_suffix": null,
"status": "requires_capture",
"transfer_data": null,
"transfer_group": null
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment