Sha256: 19a5bf8e7c0224950e1e17b04f1841064c02cea4c8b5caced1795b2ac12877c2

Contents?: true

Size: 704 Bytes

Versions: 15

Compression:

Stored size: 704 Bytes

Contents

require 'spec_helper'

describe 'Payment', vcr: true do
  let(:beneficiary_params) do
    {
      name: 'Employee Funds',
      bank_account_holder_name: 'John Doe',
      bank_country: 'GB',
      currency: 'GBP',
      email: 'john.doe@acme.com',
      account_number: '1204567890003466',
      routing_code_type_1: 'sort_code',
      routing_code_value_1: '990901'
    }
  end

  let(:beneficiary) do
    CurrencyCloud::Beneficiary.create(beneficiary_params)
  end

  let(:payment_params) do
    {
      currency: 'GBP',
      beneficiary_id: beneficiary.id,
      amount: 1_500,
      reason: 'SDK payment testing',
      reference: 'My reference code',
      payment_type: 'regular'
    }
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
currency_cloud-1.5.0 spec/integration/payment_spec.rb
currency_cloud-1.4.0 spec/integration/payment_spec.rb
currency_cloud-1.3.1 spec/integration/payment_spec.rb
currency_cloud-1.3.0 spec/integration/payment_spec.rb
currency_cloud-1.2.1 spec/integration/payment_spec.rb
currency_cloud-1.1.4 spec/integration/payment_spec.rb
currency_cloud-1.0.3 spec/integration/payment_spec.rb
currency_cloud-0.17.7 spec/integration/payment_spec.rb
currency_cloud-0.16.2 spec/integration/payment_spec.rb
currency_cloud-0.15.8 spec/integration/payment_spec.rb
currency_cloud-0.14.2 spec/integration/payment_spec.rb
currency_cloud-0.12.5 spec/integration/payment_spec.rb
currency_cloud-0.12.4 spec/integration/payment_spec.rb
currency_cloud-0.11.2 spec/integration/payment_spec.rb
currency_cloud-0.10.0 spec/integration/payment_spec.rb