Skip to content

Instantly share code, notes, and snippets.

@pollingj
Created April 8, 2013 13:36
Show Gist options
  • Save pollingj/5336799 to your computer and use it in GitHub Desktop.
Save pollingj/5336799 to your computer and use it in GitHub Desktop.
Gocardless Preauth
return GoCardless.new_pre_authorization_url amount: Settings.max_variable_direct_debit_amount, name: order.name, interval_unit: "month", interval_length: 12, state: member.id,
user: {
first_name: member.first_name,
last_name: member.last_name,
email: member.email,
billing_address1: member.correspondence_address_line_1,
billing_address2: member.correspondence_address_line_2,
billing_town: member.correspondence_address_city,
billing_postcode: member.correspondence_address_postcode
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment