Sha256: d41b0460fae176c214b39aa593c74c22b76ab241be6fac5c411f2dedd49a2fe5

Contents?: true

Size: 446 Bytes

Versions: 7

Compression:

Stored size: 446 Bytes

Contents

require 'mollie-api-ruby'

begin
  payment = Mollie::Payment.create(
    amount:      10.00,
    description: 'My first payment',
    redirectUrl: 'https://webshop.example.org/order/12345/',
    webhookUrl:  'https://webshop.example.org/payments/webhook/',
    metadata:    {
      order_id: '12345'
    },
    api_key:     'test_dHar4XY7LxsDOtmnkVtjNVWXLSlXsM'
  )
rescue Mollie::Exception => e
  puts 'An error has occurred: ' << e.message
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
mollie-api-ruby-3.1.5 website-docs/payments/create.rb
mollie-api-ruby-3.1.4 website-docs/payments/create.rb
mollie-api-ruby-3.1.4.pre.beta website-docs/payments/create.rb
mollie-api-ruby-3.1.3 website-docs/payments/create.rb
mollie-api-ruby-3.1.2 website-docs/payments/create.rb
mollie-api-ruby-3.1.1 website-docs/payments/create.rb
mollie-api-ruby-3.1.0 website-docs/payments/create.rb