View Single Post
  #2  
Old 05-17-2017, 11:37 PM
 
joss joss is offline
 

X-Cart team
  
Join Date: Feb 2009
Posts: 60
 

Default Re: X-Payments API Recharge with Cart questions

Please refer to this article for the detailed description of the recharge requests:

https://www.x-payments.com/help/X-Payments:Charge_again_transaction_request_(Tokeniz ation)

You can send the information about items, shipping cost, etc in the "cart" block.

The callback request contains the information about payment, however since recharge is a direct POST request, you can use the response for that request to get the result of the transaction. It contains the payment status and information about any errors occurred.

Meanwhile, to process the callbacks you should create your script which should be accessible via internet and pass its URL. Note: information in callback request to your script is encrypted. Please refer to these articles for the detailed information:

https://www.x-payments.com/help/X-Payments:Callback_request_with_service_payment_inf ormation
https://www.x-payments.com/help/X-Payments:Detailed_payment_and_transaction_informat ion_request#Response_specification

The PHP implementation of the encryption/decryption can be found here: https://drive.google.com/drive/folders/0B6p7sehSZL8_R3dHUk1sQVYteUE
__________________
joss@x-cart.com

Last edited by kai : 05-19-2017 at 12:39 AM.
Reply With Quote