Beanstream::InternalServerException: on rails 4.2 using gem "beanstream"

18 views Asked by At

Hey I am facing this error: Beanstream Internal Server Exception

I am using gem "beanstream" have configured the Beanstream initializer as well

Beanstream.profiles_api_key = ENV['beanstream_profiles_api_key']
Beanstream.merchant_id = ENV['beanstream_merchant_id']
Beanstream.payments_api_key = ENV['beanstream_payments_api_key']

Code to call the payments API:

@payments_api = Beanstream::PaymentsAPI.new
request = @payments_api.getPaymentRequestTemplate()
request[:payment_method] = 'payment_profile'
        request[:amount] = @amount
        request[:payment_profile] = {
          :customer_code => beanstream_customer_code,
          :card_id => 1,
          :complete => false
        }
beanstream_payment_params = request

@payments_api.make_payment(beanstream_payment_params)
0

There are 0 answers