Skip to content

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

@chrisgeek

Description

@chrisgeek

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions