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

Way to pass options to gateway transaction #329

Open
theo-bittencourt opened this issue Jun 18, 2019 · 1 comment
Open

Way to pass options to gateway transaction #329

theo-bittencourt opened this issue Jun 18, 2019 · 1 comment

Comments

@theo-bittencourt
Copy link

Hey!

I need to fill a field called "description" in a transaction to Authorize.NET.

ActiveMerchant::Billing::AuthorizeNetGateway already map options[:description] to that field.

The problem is that I can't figure out an easy way to populate these options from my app.

Spree::Gateway::AuthorizeNet#options doesn't give us a way to pass custom options.

o/

@theo-bittencourt
Copy link
Author

For now, the solution was to patch ActiveMerchant::Billing::AuthorizeNetGateway#purchase method, utilizing .prepend.

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

1 participant