I have found the Vikas and he is amazing developer, he had always delivered the product under the timeline, on budget and with 100% accuracy, He is totally problem solving guys.
Fetching available payment methods of an escrow Transaction
0 comments |

There are 3 payment methods available for funded an escrow transaction. Such methods include PayPal, Credit Card, and Wire Transfer.
<?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => 'https://api.escrow-sandbox.com/2017-09-01/transaction/1995345/payment_methods', CURLOPT_RETURNTRANSFER => 1, CURLOPT_USERPWD => 'broker@drupalchamp.org:233_57fgvc5vIpiqwp6B8Z2986vc4dsfsdftwxHlgpEtOeE5gRPuyzw', //broker email:api key(api key must be generated from broker account) CURLOPT_HTTPHEADER => array( 'Content-Type: application/json' ), )); $output = curl_exec($curl); echo $output; curl_close($curl); ?>
If the API call is successful, it will return the available payment methods.
Example Response:-- { "available_payment_methods": [ { "total": "235.39", "type": "wire_transfer" }, { "total": "242.34", "type": "paypal" }, { "total": "242.34", "type": "credit_card" } ], "total_without_payment_fee": "235.39" }
You can also check the available payment methods of an escrow transaction by "Postman" application.
URL: /2017-09-01/transaction/TRANSACTION_ID/payment_methods
HTTPVerb: GET
Type: application/json
You need to pass username as broker's email id and password as api key.
Add new comment