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

The provided XML was invalid. #344

Closed
jtundag opened this issue Apr 5, 2018 · 3 comments
Closed

The provided XML was invalid. #344

jtundag opened this issue Apr 5, 2018 · 3 comments
Labels
V2 V2 Client

Comments

@jtundag
Copy link

jtundag commented Apr 5, 2018

\Recurly_Purchase::invoice always returns this:
image

This is my code:
code

@drewish
Copy link

drewish commented Apr 5, 2018

Yeah that error is frustratingly vague. You don't say what version of the client you're using but the issue is due to this change:

  • Changed POST /v2/purchases request:
    • <currency> tag no longer allowed under <adjustment>. <currency> is an invoice level tag and is not permitted under an adjustment.

Which changed in the 2.8 version of the API but it looks like we didn't list that as a breaking change in the 2.9.0 client release notes.

Apologies for that. I'll get the release notes fixed and open up a ticket to see if we can get a more helpful error message coming back out of the API.

@drewish drewish closed this as completed Apr 5, 2018
@drewish
Copy link

drewish commented Apr 5, 2018

Oh since I didn't say it explicitly, you should just be able to remove this line:

$charge->currency = $data['currency'];

And get things working.

@jtundag
Copy link
Author

jtundag commented Apr 5, 2018

It worked! Thank you @drewish

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

No branches or pull requests

3 participants