Payment Intent


v2 POST console.bayar.cash/api/v2/payment-intents v3 POST api.console.bayar.cash/v3/payment-intents


Initialize payment intent request to Bayarcash. Make sure your account is enabled for selected payment channel. By default only FPX channel is activated.

Name
Description
Type
Condition

payment_channel

Refer payment channel page

integer

Required

portal_key

Portal key retrieve from Bayarcash console

string

Required

order_number

string

Required

amount

integer

Required

payer_name

string

Required

payer_email

string

Required

payer_telephone_number

Currently we only accept Malaysia number

integer

Optional

payer_bank_code

string

Optional

payer_bank_name

string

Optional

metadata

Currently only support order items from WooCommerce plugin

string

Optional

return_url

Server to browser redirect callback (use GET)

string

Optional

callback_url

Server to server redirect callback (use POST) - only available on v3

string

Optional

platform_id

string

Optional

checksum

string

Optional


Example of sending POST request with cURL.

Example of JSON structured response.

Last updated