AtaraPay Docs

AtaraPay Docs

  • Integration
  • API Reference

›Order Notification

Integration Overview

  • Get Started
  • Ground-up Development
  • Framework Development

Authentication

  • Calculation of Auth Token

Payment Plugin

  • Inline Integration
  • Standard Integration
  • Go Live

eCommerce Plugin

  • WooCommerce Payment Plugin
  • Magento Payment Extension
  • Shopify Payment Plugin

Payouts

  • Service Provider API
  • Create Service Provider
  • Get Service Provider
  • Delete Service Provider
  • Update Order Commission (Business Seller)
  • Update Order Commission (Marketplace Operator)

Milestone Payments

  • Overview
  • Create Project
  • Update Project
  • Get Project

Order Status Automation

  • Overview
  • Delivery Completed API.
  • Seller Cancels Order API
  • Buyer Cancels Order API
  • Order Status API

Order Notification

  • Overview
  • Delivery Complete Notification
  • Buyer Accepts Order Notification
  • Buyer Rejects Order Notification
  • Buyer Cancels Order Notification
  • Buyer Cancels Disputed Order Notification
  • Seller Cancels Order Notification
  • Seller Cancels Disputed Order Notification
  • Second Delivery Attempt Notification
  • Generation of Security Token

Resources

  • Status Definition
  • Get Bank Details
  • Marketplace Integration
  • Product Features List

Generation of Security Token

All order notifications are required to be authorized by the seller.

To achieve this, the seller is required to generate the security token and then validate that the token sent within the request is equal to that which was generated. Where the tokens do not match during validation, then the request shall not be processed.

To generate the security token, the seller is required to follow the tasks below;

1: Log into your seller account

For staging : staging.atarapay.com For Live : app.atarapay.com

2: Copy the Private Key and Public Key from the "API Keys" tab.

Image of 1

3: Create a string by concatenating public key & Private key with ":"

Public_Key => "b8kP7A1e67s0jc3h98T8pH71dq66J0s3"
Private_Key => "PKp6z3jTcLeQNc1h3u9e0ffX77NY91adE12"

4: Get Order Details

OrderId: 3021 `Order Id of the Atarapay System`
KoboAmount: 6051900 `Amount in Kobo`

5: Create the concatinating string using the delimeter :

String ==> Public_Key : Private_Key : OrderId : KoboAmount
String ==> "b8kP7A1e67s0jc3h98T8pH71dq66J0s3:PKp6z3jTcLeQNc1h3u9e0ffX77NY91adE12:3021:6051900"

6: Encode the concatenated string with base64 encoding to get token

Base64 encoded string: YjhrUDdBMWU2N3MwamMzaDk4VDhwSDcxZHE2NkowczM6UEtwNnozalRjTGVRTmMxaDN1OWUwZmZYNzdOWTkxYWRFMTI=
← Second Delivery Attempt NotificationStatus Definition →
Docs
IntegrationeCommerce PluginsAPI ReferenceAtaraPay
Other Links
About UsFrequently Asked QuestionsReport a Bug
Merchants
BenefitsOur Merchants
Follow @atarapayonline
AtaraPay
Copyright © 2024 AtaraPay