Balanced payment integration with PHP Curl -
i using balanced payment transferring payment site having problem , using php curl code in programming language, have not received type oh hopeful response of problem.
my curl code written below.
$url = "https://api.balancedpayments.com/v1/marketplaces/test-mp1k1dzwdlvf3nifthuparof/"; $ch = curl_init(); curl_setopt($ch, curlopt_ssl_verifypeer, false); curl_setopt($ch, curlopt_url,$url); curl_setopt($ch, curlopt_post, 1); curl_setopt($ch, curlopt_postfields,'key=xxxxxxxxxxxxxxxxxxxxxx&amount=5000&description=some descriptive text debit in dashboard'); curl_setopt($ch, curlopt_returntransfer, true); $output = curl_exec($ch);
this "key" hidden purchase security reason.
if has solution problem please contact me email ishansourabhjain@hotmail.com.
thanks & regards, ishan s. jain
i suspect issue has trying post key instead of supplying in basic auth format.
also, note you're building code against old api version (1.0). 1.1 recommended.
why not utilize existing balanced client library php? https://github.com/balanced/balanced-php
php curl balanced-payments
No comments:
Post a Comment