Passer au contenu
Français - France
  • Il n'y a aucune suggestion car le champ de recherche est vide.

HiPay Enterprise – WeChat Pay

wechat_pay_2.png

Service endpoints

There are two endpoints (base URLs) to which you can make your API calls:

  • Stage, if you are testing your integration,
  • and Production, when you have finished testing and want your application to go live.

 

Request parameters

To create a WeChat Pay transaction on the HiPay Enterprise Payment Gateway, you must send these mandatory/complementary parameters in your transaction creation call.

(For further details, please refer to the technical documentation.)

 

 

 

Request example

{
orderid:
operation:sale
payment_product:wechatpay
description:WeChat Pay test
long_description:Detailed description
currency:EUR
amount:200
accept_url:https://www.mysite.com/accept
decline_url:https://www.mysite.com/decline
pending_url:https://www.mysite.com/pending
exception_url:https://www.mysite.com/exception
cancel_url:https://www.mysite.com/cancel
firstname:John
lastname:DOE
country:CN
eci:7 }

 

API response

This service returns a forward URL, where you must redirect your customers to complete the payment.

(For further details, please refer to the technical documentation.

Response example


  

forwarding

https://stage-secure-gateway.hipay-tpp.com/gateway/forward/987654321a123b0b1fabcd98a7654321
true
00001234455
1

800000112233
2018-11-05T17:45:17+0000
2018-11-05T18:45:18+0100

140
Authentication requested
0.00
0.00
0.00
0.00
2
EUR
0.0.0.0


































7
wechatpay



0
ACCEPTED




1231230123


2018-11-05T17:45:17+0000


1


100.00


0.00


0.00


2


EUR