ActiveMerchant use Cyber Source flex token for payment

432 views Asked by At

I am implementing Cyber Source with ActiveMerchant. I have the flex token I received when I tokenized the card via the Cyber Source Documentation

I am then using this token in the purchase method of the gateway

gateway = ActiveMerchant::Billing::CyberSourceGateway.new(login: 'x', password: 'x')
gateway.purchase(100, 'THETOKEN')

However, when I submit this I get the following error in CyberSource:

the subscription () could not be found

This isn't a subscription payment so I had a look through the code and saw that it does this automatically if the payment method is a string Github link

Am I doing something wrong in the way I am specifying this token?

enter image description here

0

There are 0 answers