php - How add balance in mangopay wallet? -


i have been working on mangopay php sdk. have created normal/legal users using same sdk.

but stuck in transfer api. can not perform transaction. have crated multiple users , corresponding wallet can see sandbox dashboard. cannot add balance in wallet user.

can please me out , clear me mangopay flow.

i found 1 more dashboard, don't know how related sandbox.

each time try transfer money 1 user user error : no sufficient balance in wallet. (of course because can not add amount particular user)

please me out here.

thanks.

looking in mangopay sample code, functionality this. have make sure wallet ids valid.

$mangopayapi = new \mangopay\mangopayapi(); $mangopayapi->config->clientid = "mangopayuser"; $mangopayapi->config->clientpassword = "mangopaypassword"; $mangopayapi->config->temporaryfolder = "cache/dir/path";  $transfer = new \mangopay\transfer(); $transfer->authorid = $authorid; $transfer->debitedfunds = new \mangopay\money(); $transfer->debitedfunds->currency = "eur"; $transfer->debitedfunds->amount = 2500; $transfer->fees = new \mangopay\money(); $transfer->fees->currency = "eur"; $transfer->fees->amount = 500;  /** * please make sure $debitedwalletid , $creditedwalletid valid wallet ids **/ $transfer->debitedwalletid = $debitedwalletid; $transfer->creditedwalletid = $creditedwalletid;  $result = $mangopayapi->transfers->create($transfer); 

Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -