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

Moto transactions #420

Merged
merged 2 commits into from
Aug 21, 2019
Merged

Moto transactions #420

merged 2 commits into from
Aug 21, 2019

Conversation

bhelx
Copy link
Contributor

@bhelx bhelx commented Aug 21, 2019

As a part of PSD2, there is an exemption to exclude MOTO transactions from SCA scope.
In order to pass this indicator to the gateways, merchants need a mechanism via API
to inform Recurly of these transactions. These transactions will be initiated from
within a merchants customer service / support admin portal UI, where the customer
is not authenticated to be able to complete an SCA flow.

This is exposed to the programmer as transaction_type on many of the resources. Set the value to moto to mark the transaction as MOTO. Ex use with purchases:

$purchase = new Recurly_Purchase();
$purchase->currency = 'USD';
$purchase->transaction_type = 'moto';
$purchase->account = new Recurly_Account();
$purchase->account->account_code = 'aba9209a-aa61-4790-8e61-0a2692435fee';
$subscription = new Recurly_Subscription();
$subscription->plan_code = 'pp';
$purchase->subscriptions = array($subscription);
$collection = Recurly_Purchase::invoice($purchase);

@bhelx bhelx requested a review from csmb August 21, 2019 16:02
@bhelx bhelx changed the base branch from master to api_version_2_22 August 21, 2019 16:03
@csmb csmb merged commit 820e4c3 into api_version_2_22 Aug 21, 2019
@csmb csmb deleted the moto_transactions branch August 21, 2019 22:07
@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 this pull request may close these issues.

None yet

2 participants