From 4509d1f7e29da1bcc4249387c0937290e7e210ef Mon Sep 17 00:00:00 2001 From: Shawn Cook Date: Tue, 17 Mar 2020 18:48:09 -0700 Subject: [PATCH 1/2] Remove target from Git --- .gitignore | 1 + target/index.html | 7 ------- 2 files changed, 1 insertion(+), 7 deletions(-) delete mode 100644 target/index.html diff --git a/.gitignore b/.gitignore index d30f40e..64074fe 100644 --- a/.gitignore +++ b/.gitignore @@ -8,6 +8,7 @@ # production /build +/target # misc .DS_Store diff --git a/target/index.html b/target/index.html deleted file mode 100644 index ad8add3..0000000 --- a/target/index.html +++ /dev/null @@ -1,7 +0,0 @@ -React App
\ No newline at end of file From 64a71d6f846f23ceb0c7cb3eb1150a1a7edcfd69 Mon Sep 17 00:00:00 2001 From: Shawn Cook Date: Tue, 17 Mar 2020 19:00:23 -0700 Subject: [PATCH 2/2] Add success and failure callback URLs to Simplex API form --- src/api.js | 6 +++++- src/config.js | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/api.js b/src/api.js index 2140448..49cd96a 100644 --- a/src/api.js +++ b/src/api.js @@ -305,12 +305,16 @@ export async function sellDetails (sellId) { } export const SimplexForm = props => { + const baseUrl = 'https://developer.edge.app/content/conversiontracker.html' + const successUrl = `${baseUrl}?currency=${encodeURI(props.quote.currency)}&digital_amount=${encodeURI(props.quote.fiat_total_amount_amount)}&order_id=${encodeURI(props.quote.payment_id)}` + const failureUrl = `${baseUrl}?dont_track=true` return (
- + + diff --git a/src/config.js b/src/config.js index cf68b6c..00098de 100644 --- a/src/config.js +++ b/src/config.js @@ -5,5 +5,5 @@ export const edgeUrl = SANDBOX ? 'https://edge-sandbox.test-simplexcc.com' : 'ht export const simplexUrl = SANDBOX ? 'https://sandbox.test-simplexcc.com/payments/new' : 'https://checkout.simplexcc.com/payments/new' -export const edgeLegacyBuyUrl = /* SANDBOX ? 'https://simplex-sandbox-api.edgesecure.co' : */'https://simplex-api.edgesecure.co' -export const edgeSimplexBuyUrl = /* SANDBOX ? 'https://sandbox.test-simplexcc.com/payments/new' : */'https://checkout.simplexcc.com/payments/new' +export const edgeLegacyBuyUrl = SANDBOX ? 'https://simplex-sandbox-api.edgesecure.co' : 'https://simplex-api.edgesecure.co' +export const edgeSimplexBuyUrl = SANDBOX ? 'https://sandbox.test-simplexcc.com/payments/new' : 'https://checkout.simplexcc.com/payments/new'