Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attach billing address to transactions #31

Open
xxswingxx opened this issue Dec 23, 2016 · 1 comment
Open

Attach billing address to transactions #31

xxswingxx opened this issue Dec 23, 2016 · 1 comment

Comments

@xxswingxx
Copy link

According to this docs: https://developers.paymill.com/guides/reference/address-data, it shold be possible to attach a billing address to a transaction but so far it raises ArgumentError whenever I try it. If I remove the billing_address, the transaction can be created as expected. The code I've been testing is something like this:

    customer = Paymill::Client.find(CUSTOMER_ID)
    payment = Paymill::Payment.create(token: params[:card_token], client: customer)

    charge = {
      payment: payment,
      amount: 1000
      currency: 'USD'
      billing_address: {
        name: 'Max Mustermann',
        street_address: 'Musterstr. 1',
        street_address_addition: '',
        city: 'Munich',
        state: 'Bavaria',
        postal_code: '80333',
        country: 'DE',
        phone: '+4989123456'
      }
    }

   transaction = Paymill::Transaction.create(charge_attributes) #=> raises ArgumentError
@tschelabaumann
Copy link

Thanks for your request. As this feature is quite new, we were not able yet to update all wrappers to support it. The Ruby wrapper unfortunately is one of them but will be updated soon. If it's urgent feel free to fork the project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants