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

BECS support #517

Merged
merged 1 commit into from
Jul 16, 2020
Merged

BECS support #517

merged 1 commit into from
Jul 16, 2020

Conversation

joannasese
Copy link
Contributor

Completed:

  • Added bsb_code field
  • Included test

Affects the following endpoints:

  • PUT /v2/accounts/{account_id}/billing_info
  • PUT /v2/accounts/{account_id}
  • POST /v2/accounts
  • POST /v2/purchases
  • POST /v2/purchases/preview
  • POST /v2/subscriptions

To create billing_info with BECS:

$billingInfo = new Recurly_BillingInfo();
$billingInfo->account_code       = $accountCode;
$billingInfo->address1           = '123 Paper Street';
$billingInfo->city               = 'Adelaide';
$billingInfo->zip                = 'W1K 6AH';
$billingInfo->country            = 'AU';
$billingInfo->phone              = '213-555-5555';
$billingInfo->name_on_account    = 'BECS account name';
$billingInfo->account_number     = '11223311';
$billingInfo->bsb_code           = '082-082';
$billingInfo->type               = 'becs';
$billingInfo->create();

@joannasese joannasese added the V2 V2 Client label Jul 14, 2020
@joannasese joannasese requested a review from bhelx July 15, 2020 15:54
@bhelx bhelx merged commit 74b3514 into v2 Jul 16, 2020
@bhelx bhelx deleted the dx-1637-becs branch July 16, 2020 22:22
@bhelx bhelx restored the dx-1637-becs branch July 17, 2020 19:26
@bhelx bhelx mentioned this pull request Jul 17, 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