Moneris Community
Search
User
User
Product Forums
Blogs
Developer Portal
More
Cancel
Product Forums
Card Present Solutions
problem with "recur_…
State
Not Answered
Date
ChKa
Date
21 May 2019 10:52 AM
Replies
1 reply
Subscribers
7 subscribers
Views
4642 views
error
Payment
PHP
php api
Response
transaction
Options
Share
More
Cancel
Related
problem with "recur_amount"
Hi, I am testing recurring billing in php.
Here is my transaction array
[
"type"=>"res_purchase_cc",
"amount"=>"10.23",
"order_id"=>$this->orderId,
"cust_id"=>$this->customerId,
"crypt_type"=>"7"
]
Here is my recurring array
[
"recur_unit"=>"month",
"start_date"=> date('Y/m/d', strtotime('+1 year')),
"start_now"=>"true",
"period"=>"12",
"num_recurs"=>"10",
"recur_amount"=>"10.23"
];
For the test, I am using
4242424242424242
Here is the message that I get after I send the https request :
"
Error unfinished element 'recur_amount
"
Reply
ChKa
0
21 May 2019 11:42 AM
I forgot to add the data_key in the transaction array. Now I am getting a different message:
"Cancelled: null"