FPX
Wirecard Payment Page v1
This payment method is available for integration with Wirecard Payment Page v1 only. |
FPX is a type of Online Bank Transfer.
Countries and Currencies
Countries |
Malaysia |
---|---|
Currencies |
MYR |
Communication Formats
This table illustrates how FPX notifications are encoded and which formats and methods can be used for requests and responses.
Requests/Responses |
NVP Format |
---|---|
IPN Encodement |
Please follow the instructions given at Instant Payment Notification to set up IPN. |
Transaction Types
Wirecard Payment Page v1 supports the transaction type purchase only.
Test Credentials
URL (Endpoint) |
|
---|---|
Merchant Account ID (MAID) |
5f544f9f-c56a-4242-8ce7-d6422ca3599d |
Secret Key |
0fbb1b24-6082-42d4-891e-cf9202083dcf |
Additional Test Credentials on FPX Environment
Bank Selection |
SBI BANK A (to obtain a positive test case) |
---|---|
SBI BANK B/C (to obtain negative test case) |
|
Username |
1234 |
Password |
1234 |
Workflow
-
Consumer adds items to shopping basket and proceeds to checkout.
-
Merchant sends consumer’s payment request to WPG for processing.
-
Consumer selects payment method FPX.
-
WPG displays list of available banks for FPX.
-
Consumer selects the preferred bank.
-
WPG redirects consumer to FPX page showing the details of the bank the consumer has selected.
-
FPX sends consumer to bank page.
-
Consumer logs in and completes payment on bank page.
-
WPG receives transaction status from FPX.
-
WPG sends notification with transaction status to the merchant.
-
WPG redirects consumer back to the shop where the merchant displays the status of the payment process.
Fields
The fields used for FPX requests, responses and notifications are the same as for REST API and Payment Page. Please refer to: REST API Fields or Payment Page.
Sample
To test FPX, use the following JavaScript snippet.
For details on hash-generation, go to our WPP v1 Security section, see Request Signature and Secret Key Exchange. |
var requestedData = {
"request_time_stamp" : getTimeStamp(), //get current timestamp
"request_id" : generateUid(), //generate unique ID
"merchant_account_id" : "5f544f9f-c56a-4242-8ce7-d6422ca3599d",
"transaction_type" : "purchase",
"requested_amount" : "500",
"requested_amount_currency" : "MYR",
"success_redirect_url" : "https://demoshop-test.wirecard.com/demoshop/#/success",
"cancel_redirect_url" : "https://demoshop-test.wirecard.com/demoshop/#/cancel",
"fail_redirect_url" : "https://demoshop-test.wirecard.com/demoshop/#/error",
"ip_address" : "127.0.0.1",
"secret_key" : "0fbb1b24-6082-42d4-891e-cf9202083dcf",
"psp_name" : "demo",
"first_name" : "Test",
"last_name" : "User",
"attempt_three_d" : "false",
"request_signature" : "", //generate request signature
"payment_method" : "fpx",
"order_number" : "20190919063932"
}
WirecardPaymentPage.hostedPay(requestData);