Skip to content
This repository was archived by the owner on Feb 13, 2022. It is now read-only.
This repository was archived by the owner on Feb 13, 2022. It is now read-only.

Paypal Actions not available through callbacks. No way to force-fail callbacks. #15

@123Spork

Description

@123Spork

Trying to force a payment rejection in onShippingChange. The goal is to reject purchases outside of a certain address like the use case here: https://developer.paypal.com/docs/checkout/integration-features/shipping-callback/.

This is not possible to do as the actions are locked off. I'm using typescript.

//in react element
onShippingChange={(data:OnShippingChangeData)=>{
    actions.reject() //not available
    throw new Error() //not caught and forcing a rejection
    return null //not handled as a failure
}}`

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions