Create a PaymentIntent - With More Info

POST {{url}}/api/v1/pa/payment_intents/create

Request Body

{"request_id"=>"{{$guid}}", "amount"=>100, "currency"=>"USD", "merchant_order_id"=>"Merchant_Order_{{$guid}}", "metadata"=>{"my_test_metadata_id"=>"my_test_metadata_id_{{$guid}}"}, "order"=>{"products"=>[{"code"=>"3414314111", "desc"=>"iPhone", "name"=>"iPhone", "quantity"=>1, "sku"=>"iPhone_001", "type"=>"Mobile Phone - iPhone", "unit_price"=>1499.99, "url"=>"{{$randomUrl}}"}], "shipping"=>{"address"=>{"city"=>"{{$randomCity}}", "country_code"=>"CN", "postcode"=>"25000", "state"=>"{{$randomCity}}", "street"=>"{{$randomStreetAddress}}"}, "first_name"=>"{{$randomFirstName}}", "last_name"=>"{{$randomLastName}}", "phone_number"=>"{{$randomPhoneNumber}}", "shipping_method"=>"DHL"}, "type"=>"Online Mobile Phone Purchases"}, "payment_method_options"=>{"card"=>{"risk_control"=>{"skip_risk_processing"=>false, "three_domain_secure_action"=>"FORCE_3DS", "three_ds_action"=>"FORCE_3DS"}}}, "return_url"=>"{{$randomUrl}}"}

HEADERS

KeyDatatypeRequiredDescription
x-on-behalf-ofstring