Brick API
string · requiredstring · requiredstring · requiredstring · requirednumber · doublestringintegerstring
stringstring
Properties for สร้างแล้ว:integerstring
สร้างเซสชันเพจ Checkout
POST
https://sandbox.onebrick.io/v2/payments/general
/checkout
สร้างเซสชันการชำระเงินที่โฮสต์และส่งคืน checkoutUrl ที่ไม่ซ้ำกัน
Headers
publicAccessTokenผู้ถือ
สร้างเซสชันเพจ Checkout › Request Body
externalIdตัวระบุที่ไม่ซ้ำกันที่ผู้ขายกำหนดสำหรับเซสชันการชำระเงิน
currencyสกุลเงินของธุรกรรม ใช้ IDR สำหรับการรับเงินในปัจจุบัน
descriptionป้ายกำกับ Checkout แสดงให้ลูกค้าเห็นและใช้สำหรับการปรับยอด
amountจำนวนเงินที่ชำระคงที่ หากละเว้น การชำระเงินอาจทำงานเป็นกระแสจำนวนเงินที่เปิดอยู่
typeประเภทการชำระเงิน คอลเลกชันที่ทดสอบรองรับ qris และ virtual_account
สร้างเซสชันเพจ Checkout › Responses
200
statusDefault: 0
object
errorshashcodeสถานะ Checkout
GET
https://sandbox.onebrick.io/v2/payments/general
/checkout/status
ใช้ตำแหน่งข้อมูลนี้เพื่อดึงข้อมูลสถานะล่าสุดของเซสชันหน้าชำระเงิน
query Parameters
checkoutIdตัวระบุการชำระเงินที่สร้างโดย Brick ส่งคืนจาก POST /v1/payments/checkout.
externalIdชำระเงิน externalId
สถานะ Checkout › Responses
200
oneOf
Exactly one variant must match.
Decision Table
| Variant | Matching Criteria |
|---|---|
| type = object | |
| type = object | |
| type = object | |
| type = object |
statusDefault: 0
object
errorshashcode