Pay With Wave API Documentation
Pay With Wave API Documentation
API SPECIFICATION
1
PAY WITH WAVE REDIRECT API INTEGRATION GUIDELINE AND
API SPECIFICATION
Document Information
Version History
2
PAY WITH WAVE REDIRECT API INTEGRATION GUIDELINE AND
API SPECIFICATION
Table of Contents
1. Introduction..................................................................................................................................4
2. Technical Integration Aspect.....................................................................................................4
2.1 How it works..............................................................................................................................4
2.2 Security......................................................................................................................................5
2.3 Environment..............................................................................................................................5
2.4 Payment Request.....................................................................................................................5
3. How to integrate..........................................................................................................................6
3.1 Prepare Pay with Wave button...............................................................................................6
Items to display on Payment Screen............................................................................................6
Generate Hash................................................................................................................................6
HTML Form......................................................................................................................................7
FAQs and Troubleshooting.............................................................................................................11
3
PAY WITH WAVE REDIRECT API INTEGRATION GUIDELINE AND
API SPECIFICATION
Copyright
Copyright © Digital Money Myanmar Limited, 2018. All rights reserved. The information in this
document is subject to change without notice and describes only the product defined in the
introduction of this documentation. This document is intended for the use of Digital Money Myanmar
Limited partner only for the purposes of the agreement under which the document is submitted, and
no part of it may be reproduced or transmitted in any form or means without the prior written
permission of Digital Money Myanmar Limited. The document has been prepared to be used by
professional and properly trained personnel, and the partner assumes full responsibility when using it.
This document and the product it describes are considered protected by copyright according to the
applicable laws.
1. Introduction
Pay with Wave Redirect API is an online payment solution by Digital Money Myanmar Limited (Wave
Money) that allows online merchants to accept payments securely and instantly.
This document covers the essential information, processes, and other relevant aspects for merchant
technical integration with the Pay with Wave Platform. This document contains confidential
information and is not intended to be viewed by unapproved external parties. All information and
processes in the document are subject to edits and changes from Wave Money.
4
PAY WITH WAVE REDIRECT API INTEGRATION GUIDELINE AND
API SPECIFICATION
2.2 Security
Merchants who wish to have access to the API are required to provide the client_id and client_secret,
which they Requests to access the API is only accepted on presentation of the correct credentials. All
requests from merchants systems to WavePay Payment Gateway API take place over HTTPS.
Certificate for HTTPS endpoints for callback URL need to be from recognized Certificate Authorities
(CAs), i.e., not self-signed and must implemented with standard port 443.
2.3 Environment
Merchants can use the testing environment to do their functional integrations. Once the integration
testing in test environment is finished, the switch to our production system can be made. This mean
that all endpoints for both environments and the credentials have to be obtained for both.
Environment URL
Testing https://devpayment.wavemoney.io/payment:8107
Production https://payment.wavemoney.io/payment
We will be provided the Client ID and Client Secret to access both environments.
5
PAY WITH WAVE REDIRECT API INTEGRATION GUIDELINE AND
API SPECIFICATION
3. How to integrate
WavePay Payment Gateway allows merchant to integrate to WavePay Payment Gateway with
minimum effort and enjoy the full benefits of enhanced security and full suite of payment options.
Accepting payment is easier with WavePay Payment Gateway.
6
PAY WITH WAVE REDIRECT API INTEGRATION GUIDELINE AND
API SPECIFICATION
Generate Hash
HTML Form
Call Back
Wave System will call the “call-back URL” that will be provided in the request form.
7
PAY WITH WAVE REDIRECT API INTEGRATION GUIDELINE AND
API SPECIFICATION
8
PAY WITH WAVE REDIRECT API INTEGRATION GUIDELINE AND
API SPECIFICATION
currency optional
hashValue hash_hmac(merchantId+or
derId+amount+backendRes
9
PAY WITH WAVE REDIRECT API INTEGRATION GUIDELINE AND
API SPECIFICATION
ultUrl+merchantReferenc
eId+initiatorMsisdn+tra
nsactionId+paymentReque
stId+requestTime) --
with hash secret key
10
PAY WITH WAVE REDIRECT API INTEGRATION GUIDELINE AND
API SPECIFICATION
status
{
OTP_REQUESTED
OTP_CONFIRMED
PAYMENT_INITIATED
PAYMENT_CONFIRMED
PAYMENT_REQUEST_CANCELLED
INVALID_HASH
OTP_GENERATION_FAILED
OTP_CONFIRMATION_FAILED
INSUFFICIENT_BALANCE
INVALID_PIN
ACCOUNT_LOCKED
BILL_COLLECTION_FAILED -- errors apart from
INSUFFICIENT_BALANCE,INVALID_PIN,ACCOUNT_LOCKED
PAYMENT_CALLBACK_FAILED
PAYMENT_CALLBACK_SUCCESS
PAYMENT_CONFIRMED
TRANSACTION_TIMED_OUT -- transaction has timed out when committing the payment
PAYMENT_RETRIEVAL_FAILED -- issue in retrieving payment details
MERCHANT_RETRIEVAL_FAILED -- issue in retrieving merchant details
}
No, customer only required to enter Mobile Number prefix with ‘9’, mobile number
prefix ‘0’ and country code ‘(+95)’ are not required.
As a Developer
1. Does Wave Money take responsibility for the communication between client &
server?
11
PAY WITH WAVE REDIRECT API INTEGRATION GUIDELINE AND
API SPECIFICATION
No, communication between the client (web/app) and the server (merchant server) is
the developer responsibility.
No, you should not your Client_ID and Client_Secret to publicly, you must be kept
secret and never appear anywhere publicly, otherwise anyone could make
transactions on your behalf.
12