Skip to content

Feature/dtpayetwo 759 hw parity paypal account dev#131

Merged
grmeyer-hw-dev merged 3 commits into
masterfrom
feature/DTPAYETWO-759-HWParity_PaypalAccountDev
Aug 9, 2023
Merged

Feature/dtpayetwo 759 hw parity paypal account dev#131
grmeyer-hw-dev merged 3 commits into
masterfrom
feature/DTPAYETWO-759-HWParity_PaypalAccountDev

Conversation

@akswaminathan-pp-dev

@akswaminathan-pp-dev akswaminathan-pp-dev commented Dec 1, 2022

Copy link
Copy Markdown
Contributor

JIRA Ticket: DTPAYETWO-759

JIRA Tickets:


Overview

The Design Documentation can be found here: HW Parity with Masspay (REST API)

Currently when creating External Accounts (EA) such as PayPal & Venmo through the REST API method, account numbers were specified to be the following:

EA Type Account Number Type
PayPal Email
Venmo Phone Number

This has now been changed to support the following:

EA Type Account Number Type
PayPal Email, Phone Number, PayPal PayerID
Venmo Email, Phone Number, Venmo Handle, Venmo External ID

With this change, there is a new option to use the "accountId" key-value pair in the HTTP POST Request Body. When GETting an EA, the response body will show this "accountId" value as well. Users are still able to use the "email" key-value if they wish to as well.

OLD:
{
    "type": "PAYPAL_ACCOUNT",
    "transferMethodCountry": "US",
    "transferMethodCurrency": "USD",
    "email": "user@domain.com"
}

------------------------------------------------

NEW:
{
    "type": "PAYPAL_ACCOUNT",
    "transferMethodCountry": "US",
    "transferMethodCurrency": "USD",
    "accountId": "user@domain.com"
}

Added new wallet attribute USE_EMAIL_TAG_FOR_PAYPAL_EA_REST_API.

  • If this is enabled for a merchant then they will continue using 'email' in API request & response representation will also have 'email'.
  • If this is disabled for a merchant then they will be using 'accountId' in API request & response representation will also have 'accountId'.

Hence we have added a generic error 'email/accountId is required' to accomodate both based on wallet attribute USE_EMAIL_TAG_FOR_PAYPAL_EA_REST_API. Moving forward all merchants will start using accountId.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 99.287% when pulling 7a97915 on feature/DTPAYETWO-759-HWParity_PaypalAccountDev into 389b782 on master.

@grmeyer-hw-dev grmeyer-hw-dev left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

… feature/DTPAYETWO-759-HWParity_PaypalAccountDev
@akswaminathan-pp-dev
akswaminathan-pp-dev marked this pull request as ready for review August 8, 2023 16:38
@grmeyer-hw-dev
grmeyer-hw-dev merged commit d56a401 into master Aug 9, 2023
@delete-merged-branch
delete-merged-branch Bot deleted the feature/DTPAYETWO-759-HWParity_PaypalAccountDev branch August 9, 2023 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants