Closed chedieck closed 3 months ago
I got to the point of where it asks me to make the payment -- just asking SideShift if they have any suggestions for how to test better without having to use live payments.
I tried rebuilding it again and it worked!
The only thing I saw is that the success toast fires a 2nd time when you click the back button (after sending the mock XEC payment). Able to reproduce?
Good catch, just fixed.
got this error running yarn clean:build
:
got this error running
yarn clean:build
Should be fixed now.
Related to #187
Depends On:
Description
Adds SideShift integration through websockets that communicate to the PayButton Server.
Test plan
This has to be test alongside with https://github.com/PayButton/paybutton-server/pull/840 of paybutton server. First follow the steps at https://github.com/PayButton/paybutton-server/pull/840, and, after that is set up, follow the steps below:
Add to the config file (
react/lib/config.json
) the property"altpaymentClient": "mocked"
.Let
ecash:myxecaddress
be an eCash address in your custody. Save the following diff to a file namedtemp.patch
, change the four occurrences ofecash:myxecaddress
to your actual address and apply it withpatch -p1 < temp.patch
:yarn dev
. After it is done running, go to http://localhost:10001onSuccess
function will trigger in the widget being used but theonTransaction
function will trigger in the other three, so when testing this is probably best to comment out 3 widgets and only leave the one being tested.