Approve Pending Payout

Every request sent to EPG must be encrypted as detailed later on. If using this API, EPG will respond with a XML which contains all the information about the approved transaction.

Approve payout API Steps:

  1. Create an xml which contains the transaction to approve.
    xml=<fulfill-request>
    	<accept>
    		<fulfill-transaction-request><description>Approve reason 1</description><id>EPGTrxId1</id></fulfill-transaction-request>
    		<fulfill-transaction-request><description>Approve reason 2</description><id>EPGTrxId2</id></fulfill-transaction-request>
    		...
    		<fulfill-transaction-request><description>Approve reason n</description><id>EPGTrxIdn</id></fulfill-transaction-request>
    		</accept>	
    </fulfill-request>
  2. Once this has been done, above parameter should be encrypted using AEScipher algorithm. This method of encryption uses the merchant’s password which will have been setup previously with EPG. The password should be hashed using MD5 algorithm before encrypting the parameters.
  3. Once the xml parameter have been encrypted, the merchant should then perform a SHA256 hashing of the original unencrypted parameters. This will produce a value that EPG will then use in order to check the integrity of the request.
  4. After the above steps have been completed the merchant should post all of the data to EPG. Posting to below url the encryoted parameter, merchant id and the integrity check
    https://checkout-stg.easypaymentgateway.com/EPGCheckout/rest/online/approvePayout

    Example:

    https://checkout-stg.easypaymentgateway.com/EPGCheckout/rest/online/approvePayout?encrypted=sd76sdghfdgdf76sugfdguyfgd7td7fgdf&integrityCheck=jhsjnbcjbxcjh232h2j3&merchantId=1234
  5. After checking that the IP from which the request was made is valid EPG will attempt to decrypt the parameters and perform the SHA256 Hashing to make sure the integrity of the request is intact. If all is well, EPG will return a XML response which contains the status of the approved transactions.
    <?xml version="1.0" encoding="UTF-8"?>
    <payfrex-response operation-size="1">
       <message>Approve payout summary</message>
       <operations>
          <operation sorted-order="2">
             <amount>2000.00</amount>
             <currency>USD</currency>
             <details>paymentsolution_response</details>
             <fee>56.29</fee>
             <merchantTransactionId>1413201846-172396</merchantTransactionId>
             <message>none</message>
             <operationType>CREDIT</operationType>
             <optionalTransactionParams />
             <payFrexTransactionId>19484</payFrexTransactionId>
             <paySolTransactionId>123413201885024</paySolTransactionId>
             <paymentSolution>neteller</paymentSolution>
             <status>SUCCESS</status>
          </operation>
          <operation sorted-order="1">
             <amount>500.00</amount>
             <currency>USD</currency>
             <details>paymentsolution_response</details>
             <merchantTransactionId>1413xx6-172393</merchantTransactionId>
             <message>none</message>
             <operationType>CREDIT</operationType>
             <optionalTransactionParams />
             <payFrexTransactionId>15584</payFrexTransactionId>
             <paySolTransactionId>1wewr188r5024</paySolTransactionId>
             <paymentSolution>wirecard</paymentSolution>
             <status>SUCCESS</status>
          </operation>
       </operations>
       <optionalTransactionParams />
       <status>SUCCESS</status>   
    </payfrex-response>											
    
Cookies Policy We need our cookies to make Easy Payment Gateway better. If you need more information click here.