Skip to content

PaymentDetailsUpdate needs to include payerErrors #766

@marcoscaceres

Description

@marcoscaceres

There is bug in the current spec, whereby merchant can't signal payer-related fixes via updateWith():

// user tries to fix email
response.onpayerdetailschange = ev => {
   if (!isValidPayerDetails(response)) {
       const payerErrors = getPayerErrors(response);
       // Oh wooops, `payerErrors` doesn't exist on `PaymentDetailsUpdate`
       ev.updateWith({ payerErrors });
   }
}

Same applies to paymentMethod errors.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions