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

Requests with ampersand fail #148

Closed
dmatora opened this issue Apr 11, 2015 · 1 comment · Fixed by #150
Closed

Requests with ampersand fail #148

dmatora opened this issue Apr 11, 2015 · 1 comment · Fixed by #150
Labels
V2 V2 Client

Comments

@dmatora
Copy link

dmatora commented Apr 11, 2015

Like when creating a plan with name "nice & beautiful plan"
name is empty on request
and request fails with <error field="plan.name" symbol="blank">can't be blank</error>

@drewish
Copy link

drewish commented Apr 13, 2015

I've got a fix I'm happy with for this over on #150. Let me know if that change fixes your issue. Here's what I was testing it with locally:

$plan = new Recurly_Plan();
$plan->plan_code = 'nice';
$plan->name = "nice & beautiful plan";
$plan->unit_amount_in_cents->addCurrency('USD', 1000);
$plan->plan_interval_length = 1;
$plan->plan_interval_unit = 'months';
$plan->total_billing_cycles = NULL;
$plan->create();
var_dump($plan->name);

@bhelx bhelx added the V2 V2 Client label Mar 3, 2020
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

Successfully merging a pull request may close this issue.

3 participants