SPEI
Features
Processing currencies | MXN |
---|---|
Settlement currencies | USD |
Minimum transaction amount | 1.00 MXN |
Refunds | ❌ |
Partial Refunds | ❌ |
Multiple partial refund | ❌ |
Chargeback | ❌ |
Integration Method
spei
1.
2.
Direct API
How to integration
spei
the list of payment method types.{
"amount":1000,
"currency":"BRL",
"confirm":true,
"payment_method_data" : {
"type":"spei",
"billing_details": {
"name": "Test Name"
}
},
"payment_method_options":{
"spei":{
"curp":"PAPP971101MASNNN01",
"rfc_pf":"PAPP971101F15"
}
},
"description": "product description",
"merchant_order_id": "Order112344343",
"return_url":"https://your.website"
}
{
"id": "pi_1858691017545351168",
"object": "payment_intent",
"created": 1731981446000,
"livemode": true,
"currency": "MXN",
"amount": 1000,
"status": "requires_action",
"client_secret": "pi_1858691017545351168_secret_5gpILS8AXPv3yxO55TwlTEbQ",
"next_action": {
"type": "spei_handle_redirect",
"spei_handle_redirect": {
"url": "https://XXXXXXXXXXXXXXXXXXXXX"
}
},
"payment_method_types": [
"spei",
],
"confirmation_method": "automatic",
"payment_method_options": {
"spei": {
"curp": "PAPP971101MASNNN01",
"rfc_pf": "PAPP971101F15"
}
},
"return_url": "https://swooshtransfer.com/",
"payment_method": "pm_1858691017415327744",
"capture_method": "automatic"
}
Checkout
Payment flow
1.
Create a Session
{
"cancel_url": "www.wooshpay.com",
"mode": "payment",
"success_url": "https://wooshpay.com/",
"payment_method_types": [
"spei"
],
"line_items": [
{
"price_data": {
"currency": "MXN",
"unit_amount": 20000,
"nickname": "apple",
"product_data": {
"name": "apple"
}
},
"quantity": 1
}
]
}
{
"id": "cs_1858755815456899072",
"object": "checkout.session",
"created": 1731996895000,
"livemode": true,
"currency": "MXN",
"customer": "",
"mode": "payment",
"status": "open",
"url": "https://checkout.wooshpay.com/pay/cs_1858755815456899072?key=cGtfbGl2ZV9OVEUzTmpBNU16ZzRPREV3TmpReU5ETXlNREF4T2tsVGR6VkZSVEZxWm5ST2FXbDJhM3B1VVc1VGVIcE1TakUzTURnMk56VTFNakExTnpn",
"cancel_url": "www.wooshpay.com",
"line_items": {
"object": "list",
"data": [
{
"id": "li_1858755815473676288",
"object": "item",
"currency": "MXN",
"description": "Test Product",
"price": {
"id": "price_1858755815490453504",
"object": "price",
"created": 1731996895000,
"livemode": true,
"active": true,
"currency": "MXN",
"nickname": "apple",
"product": {
"id": "prod_1858755815511425024",
"object": "product",
"created": 1731996895000,
"livemode": true,
"active": true,
"name": "Test Product",
"updated": 1731996895000,
"images": [
"https://appletservice.oss-accelerate.aliyuncs.com/checkout_0517/icon0720/pic.png"
]
},
"type": "one_time",
"unit_amount": 20,
"billing_scheme": "per_unit"
},
"quantity": 7,
"amount_subtotal": 140,
"amount_total": 140
}
]
},
"payment_intent": "pi_1858755815737917440",
"payment_method_types": [
"spei"
],
"payment_status": "unpaid",
"success_url": "https://wooshpay.com/",
"amount_subtotal": 140,
"amount_total": 140,
"billing_address_collection": "auto",
"expires_at": 1732083295078,
"payment_link": "",
"client_secret": "pi_1858755815737917440_secret_7VRbujSC2ey7Wye2STHJENvx",
"customer_creation": "if_required",
"total_details": {
"amount_discount": 0
}
}
Next step
Webhook
Refund
Modified at 2024-11-19 06:23:37