I have a problem I do not know how to mount the json of this call in php to send by curl, could anyone help me?
"auto_recurring": {
"frequency": 1,
"frequency_type": "months",
"transaction_amount": 200
}
I have a problem I do not know how to mount the json of this call in php to send by curl, could anyone help me?
"auto_recurring": {
"frequency": 1,
"frequency_type": "months",
"transaction_amount": 200
}
Do this:
$array = [
"auto_recurring" =>[
"frequency" => 1,
"frequency_type" => "months",
"transaction_amount" => 200
]
];
After converting to json, do the following:
json_encode($array);
The output of the above line is:
"auto_recurring": {
"frequency": 1,
"frequency_type": "months",
"transaction_amount": 200
}