Marketing

Coupons

6min

Introduction

Handling card holder information requires the entity to obtain PCI DSS Level 1 certification, which ensures the merchant systems are complaint with the payment industry standards.

Moyasar merchants do not have to worry about this, since card holder information are passed directly to Moyasar servers without going through the merchant systems ensuring card holder information safety and relief the merchant of any required certification.

Applying marketing coupons or discounts based on the card BIN (Bank Identification Number) or IIN (Issuer Identification Number) will require the merchant to handle card holder information directly which is not possible without the proper certifications.

Moyasar API offers a feature called Coupons which allows the merchant to define rules using different criteria. During the payment process, Moyasar API will automatically check if the coupon is applicable on the payment request, and if so, the coupon will be applied and the payment amount will be deducted based on the defined value.



Setup

In order to setup a token, the merchant will provide Moyasar with the following information:

  • Name: a human readable name to identify the coupon
  • Code: a machine readable name for the coupon, for example RAJHI15
  • Discount Percentage: any value from 1 to 100%
  • Max Discount: the cap for discount, for example 50SAR.
  • Source: card or applepay
  • Start Day
  • End Day
  • BIN List: a list of bins that the coupon applies to
    • Please note that Physical card and Apple Pay BIN are not the same, so you have to ask your issuer for both.



How Coupons Are Applied?

When a payment is created through the API, Moyasar will check for registered coupons and if a coupon matches the incoming payment, the coupon will be applied to that payment and the amount will be reduced according to the set value.

When the payment response is returned, the payment metadata will look like this:

JSON


In the previous example, the payment amount was 2000.00SAR. When the coupon is applied, 300.00 will be deducted from the full amount, however, only 150.00 is deducted since we have defined a cap on the coupon.

When the merchant gets a response, they must detect if a coupon is applied or not and update the order within their system accordingly. Failing to do so, will result in inconsistencies within your records and the payment gateway.



BIN Ranges

Please note that each source has a different BIN range for the same card product, for example, the same exact mada card from a local Saudi issuer has the BIN ranges for:

  • Card: 48478312
  • Apple Pay: 50696822



Coupon Flow





Updated 21 May 2024
Did this page help you?