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 #520

Merged
merged 1 commit into from
Jul 22, 2020
Merged

BECS support #520

merged 1 commit into from
Jul 22, 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 20, 2020
@joannasese joannasese requested a review from bhelx July 20, 2020 17:54
@bhelx bhelx merged commit a175c2a into api_version_2_28 Jul 22, 2020
@bhelx bhelx deleted the dx-1637-becs branch July 22, 2020 19:16
@joannasese joannasese mentioned this pull request Jul 22, 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