Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
chrisgeek opened this issue Jun 13, 2021 · 1 comment
Open

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

chrisgeek opened this issue Jun 13, 2021 · 1 comment

Comments

@chrisgeek
Copy link

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
Copy link

Hello @chrisgeek have you been able to resolve this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants