react-coinbase-commerce icon indicating copy to clipboard operation
react-coinbase-commerce copied to clipboard

chargeId not working with `CoinbaseCommerceButton`

Open pranav-singhal opened this issue 3 years ago • 1 comments

Description:


When I use chargeId instead of checkoutId, I get this page: Screenshot 2022-01-08 at 11 27 23 PM

pranav-singhal avatar Jan 08 '22 17:01 pranav-singhal

This comment suggests you should use charge code instead of id:

{
  "data": {
    "id": "f765421f2-1451-fafb-a513-aac6c819fba9", <- not this one
    "code": "66BEOV2A",  <- this one
    ...
}

Works for me.

arcoraven avatar Jan 21 '22 07:01 arcoraven