Ruby Libraries

Accepting credit card payments with Ruby

The following example uses pin_payment by Danial Pearce:

PinPayment.secret_key = 'your-secret-api-key'
PinPayment::Charge.create(
  email:       'customer@email.com',
  description: 'Widgets',
  amount:      4999,
  currency:    'USD',
  card:        'card_nytGw7koRg23EEp9NTmz9w',
  ip_address:  '1.2.3.4'
)

Ruby libraries compatible with Pin Payments:

Pin Payments acknowledges the Traditional Owners and Custodians of the Country throughout Australia and recognises their continuing connection to land, water and community.
We pay our respects to Aboriginal and Torres Strait Islander cultures, and to Elders past and present.