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

Tiered pricing #482

Merged
merged 1 commit into from
Mar 26, 2020
Merged

Tiered pricing #482

merged 1 commit into from
Mar 26, 2020

Conversation

joannasese
Copy link
Contributor

@joannasese joannasese commented Mar 23, 2020

To create add-on with tiered pricing:

$add_on = new Recurly_Addon();
$add_on->plan_code = $plan->plan_code;
$add_on->add_on_code = 'plant';
$add_on->name = 'Plant';
$add_on->tier_type = 'tiered';

$tier1 = new Recurly_Tier();
$tier1->unit_amount_in_cents->addCurrency('USD', 400);
$tier1->ending_quantity = 800;
$tier2 = new Recurly_Tier();
$tier2->unit_amount_in_cents->addCurrency('USD', 200);

$add_on->tiers = array($tier1, $tier2);
$add_on->create();

@joannasese joannasese added the V2 V2 Client label Mar 23, 2020
@joannasese joannasese force-pushed the tiered-pricing branch 2 times, most recently from 0d115b5 to a8f5cb7 Compare March 23, 2020 18:58
@joannasese joannasese marked this pull request as ready for review March 23, 2020 18:59
@joannasese joannasese requested a review from bhelx March 23, 2020 19:39
Copy link
Contributor

@bhelx bhelx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@bhelx bhelx merged commit 57dd842 into v2.26 Mar 26, 2020
@bhelx bhelx deleted the tiered-pricing branch March 26, 2020 18:16
@joannasese joannasese mentioned this pull request Mar 27, 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 this pull request may close these issues.

None yet

2 participants