Thanks @jcanare2,
One thing may be the way you are passing the body in the request. Not sure if those quotation marks are curly quotes for example:
“ ” - Curly Quotes
vs
" " - Straight Quotes
It seems like you have may curly quotes in your request, but it also may be the way you pasted it into the forum.
Here is an example below of your request I made in postman.
Create Payment
Request
{
"amount": 1,
"currency": "USD",
"customer":{
"email": "johndoe@rapyd.net",
"ewallet": null,
"invoice_prefix":"JP-",
"name": "Juan Pacheco",
"phone_number":"14155559993"
},
"payment_method": {
"type": "us_debit_mastercard_card",
"fields": {
"number": "4111111111111111",
"expiration_month": "12",
"expiration_year": "25",
"name": "John Doe",
"cvv": "111"
},
"metadata": {
"merchant_defined": true
}
},
"payment_method_options":{},
"save_payment_method": false,
"capture": true
}
Response
{
"status": {
"error_code": "",
"status": "SUCCESS",
"message": "",
"response_code": "",
"operation_id": "d31a2239-c167-4e46-9e82-1aa40acc3313"
},
"data": {
"id": "payment_f5a1052566be3c1be3917887b4522edf",
"amount": 1,
"original_amount": 1,
"is_partial": false,
"currency_code": "USD",
"country_code": "US",
"status": "CLO",
"description": "",
"merchant_reference_id": "",
"customer_token": "cus_4fc1e73163f295ce96aa83f82e6615c4",
"payment_method": "card_321c400639d04df76029d547e03a9114",
"payment_method_data": {
"id": "card_321c400639d04df76029d547e03a9114",
"type": "us_debit_mastercard_card",
"category": "card",
"metadata": {
"merchant_defined": true
},
"image": "",
"webhook_url": "",
"supporting_documentation": "",
"next_action": "not_applicable",
"name": "John Doe",
"last4": "1111",
"acs_check": "unchecked",
"cvv_check": "unchecked",
"bin_details": {
"type": null,
"brand": null,
"level": null,
"issuer": null,
"country": null,
"bin_number": "411111"
},
"expiration_year": "25",
"expiration_month": "12",
"fingerprint_token": "ocfp_2a694038316f52122bbbb3ae926cfda9"
},
"auth_code": null,
"expiration": 1682479554,
"captured": true,
"refunded": false,
"refunded_amount": 0,
"receipt_email": "",
"redirect_url": "",
"complete_payment_url": "",
"error_payment_url": "",
"receipt_number": "",
"flow_type": "",
"address": null,
"statement_descriptor": "Test Business",
"transaction_id": "",
"created_at": 1681874754,
"metadata": {},
"failure_code": "",
"failure_message": "",
"paid": true,
"paid_at": 1681874755,
"dispute": null,
"refunds": null,
"order": null,
"outcome": null,
"visual_codes": {},
"textual_codes": {},
"instructions": [],
"ewallet_id": "ewallet_db4ad4a76278f94c4a83dd9b28b483ed",
"ewallets": [
{
"ewallet_id": "ewallet_db4ad4a76278f94c4a83dd9b28b483ed",
"amount": 1,
"percent": 100,
"refunded_amount": 0
}
],
"payment_method_options": {},
"payment_method_type": "us_debit_mastercard_card",
"payment_method_type_category": "card",
"fx_rate": 1,
"merchant_requested_currency": null,
"merchant_requested_amount": null,
"fixed_side": "",
"payment_fees": null,
"invoice": "",
"escrow": null,
"group_payment": "",
"cancel_reason": null,
"initiation_type": "customer_present",
"mid": "",
"next_action": "not_applicable",
"error_code": "",
"remitter_information": {},
"save_payment_method": false
}
}