IkoroVictor / paystack-ruby

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

Add Custom Field to Request and return it in Paystack response #23

Open chrisgeek opened 3 years ago

chrisgeek commented 3 years ago

Really nice gem. I am trying to add a custom attribute when initiating a payment and I want the attribute to be returned as part of the response data from paystack. I have tried a couple of methods to no avail.

transactions = PaystackTransactions.new(@paystack)
     result = transactions.initializeTransaction(
       amount: @amount,
       email: @email,
       custom_data: 'value' # value I wish to return as part of the response
     )

I am working with ruby 2.7 and rails 6

PromiseUka commented 10 months ago

Hello @chrisgeek have you been able to resolve this?