SeunAdelekan / PaystackJava

A Java based API wrapper for the Paystack API.
MIT License
41 stars 28 forks source link

Clarify amount sent is in kobo not naria #14

Closed poshjosh closed 3 years ago

poshjosh commented 3 years ago

Using test secret key.

Sent request:

{    
    reference=MOFXw8mDx8Y6PpBAbCVF-1755789cc00,
    callback_url=http://127.0.0.1:8080/from-payment-gateway?spec=a73de0d7f9bf7ac152e788d0e5337c3a93e0c7bc5e3fe98aaee1f1a7000bf8bec4a45904876d0a7f1c743d3eb45cc42f4bc9cc2c9cbe68c495ecbbbcd7f894fe&v=1&success=true,
    amount=777.00,
    email=looseboxes@gmail.com
}

Received response JSON:

{
    "data": {
        "reference": "MOFXw8mDx8Y6PpBAbCVF-1755789cc00",
        "authorization_url": "https://checkout.paystack.com/ti6crtvtdh4egjv",
        "access_code": "ti6crtvtdh4egjv"
    },
    "message": "Authorization URL created",
    "status": true
}

__Browsed to the authorization_url__

Expected amount: 777 Actual amount: 7.77

I would like to clarify that the amount sent to the Paystack API is considered to be in kobo and not that some currency exchange rate is applied to alter it from 777 to 7.77.

Thanks

SeunAdelekan commented 3 years ago

Hello @poshjosh, yes, the amounts sent are in kobo. Cheers