Master Pass API Integration: Version-1.0
Master Pass API Integration: Version-1.0
Master Pass API Integration: Version-1.0
version-1.0
Some Important Notes:1. These APIs can take 5-10 seconds time to response. Because these are communicating via multiple servers/channels. 2. The version is development version. So please co-operate if you find any bug in APIs. 3. All Parameters will be in POST.
Web APIs:1) Get Authorization URL and request token(Process 01 to 08 according to Integration Diagram) Name:- O1_GetRequestToken.php FINAL URL:-http://54.254.102.185/MasterPassPhp/Web/O1_GetRequestToken.php Input:S. No 1. 2. 3. 4. 5. Name user_token user_id restaurant_id order_id app_token Data Type String String String String String Description token got from login API id of user restaurant id order id app token
Output:S. No 1. Name redirect_url Data Type URL Description an absolute path of redirect url of Master pass site where payment would be made
2.
request_token
String
2) Get Purchase data(Process 15 to 20 according to Integration Diagram) NOTE:- Master Pass site will automatically redirect user to this API so no need to call this explicitly Name:- O3_Callback.php FINAL URL:- http://54.254.102.185/MasterPassPhp/Web/O3_Callback.php Input:S. No 1. 2. 3. 4. Name profileName auth_token auth_verifier checkout_resource_url Data Type String String String String Description
Output:S. No 1. 1.1 1.2 1.3 1.4 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.5 1.6 Name Card BrandId BrandName AccountNumber BillingAddress City Country CountrySubdivision Line1 Line2 PostalCode CardHolderName ExpiryMonth Data Type Array String String String Array String String String String Array String String String Description
ExpiryYear
TransactionId Contact FirstName LastName Country EmailAddress PhoneNumber PayPassWalletIndicator
3) Receive Post Back data (Process 21 to 23 according to Integration Diagram) Name:- O6_PostTransaction.php Final URL:- http://54.254.102.185/MasterPassPhp/Web/O6_PostTransaction.php Input:S. No 1. 2. Name transactionId order_amount Data Type String String Description transaction Id got from previous API amount of order
Output:S. No 1. 1.2 1.3 1.4 1.5 1.6 1.7 1.8 Name MerchantTransactions TransactionId ConsumerKey Currency OrderAmount PurchaseDate TransactionStatus ApprovalCode Data Type Array String String String String String String String Description Array containing all Request Token of Payment