IkoroVictor / paystack-ruby

A ruby gem for easy integration of Paystack.
MIT License
32 stars 28 forks source link

How to notify an action after Successful or Unsuccessful payment #16

Closed dev-men closed 6 years ago

dev-men commented 6 years ago

I'm using Paystack-Ruby Gem for paystack Payment gateway 1st time.

I'm successful in loading the Paystack page where Customer can enter his/her card or bank detail. And pay the amount.

sejvm

I'm using Paystack-Ruby Gem for paystack Payment gateway 1st time.

I'm successful in loading the Paystack page where Customer can enter his/her card or bank detail. And pay the amount.

But I'm unable to figure out How can I know transaction is performed?

How will I go to the next page? When a Transaction is initiated I just have 3 things

  1. Reference Number
  2. Access Code
  3. Paystack Authorization URL After that Paystack page is loaded. And I have a dead-end.

Your help will be appreciated.

Thanks.

galonge commented 6 years ago

Hello @dev-men , you can query your unique reference code to verify the status of a transaction. you can also specify a callback url after a transaction is completed.

you can go through the api docs to familiarize yourself with the entire process. it will help you understand what the paystack-ruby gem helps you achieve.

https://developers.paystack.co/docs

dev-men commented 6 years ago

@wayneskillz Thank You for Your response. I figured it out. I just have to mention the "Call Back URL" in PayStack. Either the payment is successful or not, the call will be returned to mentioned Call Back URL. From where I can proceed further.

galonge commented 6 years ago

@dev-men thats great. Thanks for the update.

Andi1204 commented 2 years ago

Screenshot_20211118-234236_Gmail

I'm unable to figure out How can I know transaction is performed?

How will I go to the next page?

Your help will be appreciated.

Thanks.