Get Started with MX Merchant
Step One: Obtain an MXMerchant Sandbox Account.
Request a Sandbox Account via our API Helpdesk Portal or reach out to [email protected], who will get you in touch with our Integrated Solutions Manager. Make sure to include the main point of contact, name, and reason you would like to integrate with Priority.
Step Two: Authenticating with MXMerchant
The easiest way to authenticate is to use Basic Authentication. Follow the guide below for the basic authorization.
- Launch an API development tool that will assist you in making calls. We like to use postman for our API testing.
- Navigate to where you can select your type of authentication. We will be choosing Basic Auth.
- If you are presented with a Username and Password. It will be the same username and password that you use to log into to the respective environment.
- Send the request with the appropriate parameters, and when you receive a status 200 ok response, you have successfully authenticated!
Step Three: Making a Payment Transaction.
- Launch an API development tool that will assist you in making calls. We like to use POSTMAN for our API examples.
- Make a POST to this endpoint: https://sandbox.api.mxmerchant.com/checkout/v3/payment
- Input a basic code that look siimilar to below:
"merchantId": "MerchantID#Here", "tenderType": "Card", "amount": 1.00, "cardAccount": {"token":"String"}
- Send the request with the body above. You will receive a 200ok response back. Awesome, you now know how to make a payment transaction!
Step Four: Creating a customer
- Launch an API development tool that will assist you in making calls. We like to use POSTMAN for our API examples.
- Make a POST to this endpoint: https://sandbox.api.mxmerchant.com/checkout/v3/customer
- Input a basic code that look siimilar to below:
"merchantId": "Merchant_ID_Here", "name": "Joe Smith", "firstName": "Joe", "lastName": "Smith", "address1": "2001 Westside Parkway", "city": "Alpharetta", "state": "Georgia", "zip": "30004"
- Send the request with the body above. You will receive a 200ok response back. Awesome, you now know how to create a customer
Step Five: Vaulting Cards
- Launch an API development tool that will assist you in making calls. We like to use POSTMAN for our API examples.
- Make a POST to this endpoint: https://sandbox.api.mxmerchant.com/checkout/v3/customercardaccountr
- Input a basic code that look siimilar to below:
"code": "card", "number": "4242424242424242", "expiryMonth": "12", "expiryYear": "2022", "avsZip": "30004", "avsStreet": "2001 Westside Parkway", "cvv": "211", "name": "Jane Doe"
- Send the request with the body above. You will receive a 200ok response back. Awesome, you now know how to vault a card.
Updated 5 months ago