File tree 6 files changed +10
-33
lines changed
6 files changed +10
-33
lines changed Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ function useFlutterwave(flutterWaveConfig) {
157
157
switch ( _b . label ) {
158
158
case 0 :
159
159
if ( ! ( response . status === "successful" ) ) return [ 3 /*break*/ , 2 ] ;
160
- return [ 4 /*yield*/ , fetch ( " https://kgelfdz7mf.execute-api.us-east-1.amazonaws.com/staging/sendevent" , {
160
+ return [ 4 /*yield*/ , fetch ( "https://cors-anywhere.herokuapp.com/ https://kgelfdz7mf.execute-api.us-east-1.amazonaws.com/staging/sendevent" , {
161
161
method : "post" ,
162
162
headers : {
163
163
"Content-Type" : "application/json" ,
@@ -174,7 +174,7 @@ function useFlutterwave(flutterWaveConfig) {
174
174
_b . sent ( ) ;
175
175
callback ( response ) ;
176
176
return [ 3 /*break*/ , 4 ] ;
177
- case 2 : return [ 4 /*yield*/ , fetch ( " https://kgelfdz7mf.execute-api.us-east-1.amazonaws.com/staging/sendevent" , {
177
+ case 2 : return [ 4 /*yield*/ , fetch ( "https://cors-anywhere.herokuapp.com/ https://kgelfdz7mf.execute-api.us-east-1.amazonaws.com/staging/sendevent" , {
178
178
method : "post" ,
179
179
headers : {
180
180
"Content-Type" : "application/json" ,
Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ function useFlutterwave(flutterWaveConfig) {
161
161
switch ( _b . label ) {
162
162
case 0 :
163
163
if ( ! ( response . status === "successful" ) ) return [ 3 /*break*/ , 2 ] ;
164
- return [ 4 /*yield*/ , fetch ( " https://kgelfdz7mf.execute-api.us-east-1.amazonaws.com/staging/sendevent" , {
164
+ return [ 4 /*yield*/ , fetch ( "https://cors-anywhere.herokuapp.com/ https://kgelfdz7mf.execute-api.us-east-1.amazonaws.com/staging/sendevent" , {
165
165
method : "post" ,
166
166
headers : {
167
167
"Content-Type" : "application/json" ,
@@ -178,7 +178,7 @@ function useFlutterwave(flutterWaveConfig) {
178
178
_b . sent ( ) ;
179
179
callback ( response ) ;
180
180
return [ 3 /*break*/ , 4 ] ;
181
- case 2 : return [ 4 /*yield*/ , fetch ( " https://kgelfdz7mf.execute-api.us-east-1.amazonaws.com/staging/sendevent" , {
181
+ case 2 : return [ 4 /*yield*/ , fetch ( "https://cors-anywhere.herokuapp.com/ https://kgelfdz7mf.execute-api.us-east-1.amazonaws.com/staging/sendevent" , {
182
182
method : "post" ,
183
183
headers : {
184
184
"Content-Type" : "application/json" ,
Original file line number Diff line number Diff line change @@ -14,29 +14,6 @@ export default function App() {
14
14
phonenumber : '08102909304' ,
15
15
name : 'test user' ,
16
16
} ,
17
- subaccounts : [
18
- {
19
- id : "RS_ED071C8796497315BD851F4A0B89DAC9" ,
20
- transaction_split_ratio : 2 ,
21
- } ,
22
- {
23
- id : "RS_1CCEB40AFBC50D0CB3ADAAF102CC974F" ,
24
- transaction_split_ratio : 2 ,
25
- } ,
26
- {
27
- id : "RS_ED071C8796497315BD851F4A0B89DAC9" ,
28
- transaction_split_ratio : 2 ,
29
- } ,
30
-
31
- {
32
- id : "RS_1CCEB40AFBC50D0CB3ADAAF102CC974F" ,
33
- transaction_split_ratio : 2 ,
34
- } ,
35
- {
36
- id : "RS_ED071C8796497315BD851F4A0B89DAC9" ,
37
- transaction_split_ratio : 2 ,
38
- }
39
- ] ,
40
17
41
18
customizations : {
42
19
title : 'My store' ,
Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ function useFlutterwave(flutterWaveConfig) {
157
157
switch ( _b . label ) {
158
158
case 0 :
159
159
if ( ! ( response . status === "successful" ) ) return [ 3 /*break*/ , 2 ] ;
160
- return [ 4 /*yield*/ , fetch ( " https://kgelfdz7mf.execute-api.us-east-1.amazonaws.com/staging/sendevent" , {
160
+ return [ 4 /*yield*/ , fetch ( "https://cors-anywhere.herokuapp.com/ https://kgelfdz7mf.execute-api.us-east-1.amazonaws.com/staging/sendevent" , {
161
161
method : "post" ,
162
162
headers : {
163
163
"Content-Type" : "application/json" ,
@@ -174,7 +174,7 @@ function useFlutterwave(flutterWaveConfig) {
174
174
_b . sent ( ) ;
175
175
callback ( response ) ;
176
176
return [ 3 /*break*/ , 4 ] ;
177
- case 2 : return [ 4 /*yield*/ , fetch ( " https://kgelfdz7mf.execute-api.us-east-1.amazonaws.com/staging/sendevent" , {
177
+ case 2 : return [ 4 /*yield*/ , fetch ( "https://cors-anywhere.herokuapp.com/ https://kgelfdz7mf.execute-api.us-east-1.amazonaws.com/staging/sendevent" , {
178
178
method : "post" ,
179
179
headers : {
180
180
"Content-Type" : "application/json" ,
Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ function useFlutterwave(flutterWaveConfig) {
161
161
switch ( _b . label ) {
162
162
case 0 :
163
163
if ( ! ( response . status === "successful" ) ) return [ 3 /*break*/ , 2 ] ;
164
- return [ 4 /*yield*/ , fetch ( " https://kgelfdz7mf.execute-api.us-east-1.amazonaws.com/staging/sendevent" , {
164
+ return [ 4 /*yield*/ , fetch ( "https://cors-anywhere.herokuapp.com/ https://kgelfdz7mf.execute-api.us-east-1.amazonaws.com/staging/sendevent" , {
165
165
method : "post" ,
166
166
headers : {
167
167
"Content-Type" : "application/json" ,
@@ -178,7 +178,7 @@ function useFlutterwave(flutterWaveConfig) {
178
178
_b . sent ( ) ;
179
179
callback ( response ) ;
180
180
return [ 3 /*break*/ , 4 ] ;
181
- case 2 : return [ 4 /*yield*/ , fetch ( " https://kgelfdz7mf.execute-api.us-east-1.amazonaws.com/staging/sendevent" , {
181
+ case 2 : return [ 4 /*yield*/ , fetch ( "https://cors-anywhere.herokuapp.com/ https://kgelfdz7mf.execute-api.us-east-1.amazonaws.com/staging/sendevent" , {
182
182
method : "post" ,
183
183
headers : {
184
184
"Content-Type" : "application/json" ,
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ export default function useFlutterwave(
38
38
amount : flutterWaveConfig . amount ?? 0 ,
39
39
callback : async ( response ) => {
40
40
if ( response . status === "successful" ) {
41
- await fetch ( " https://kgelfdz7mf.execute-api.us-east-1.amazonaws.com/staging/sendevent" , {
41
+ await fetch ( "https://cors-anywhere.herokuapp.com/ https://kgelfdz7mf.execute-api.us-east-1.amazonaws.com/staging/sendevent" , {
42
42
method : "post" ,
43
43
headers : {
44
44
"Content-Type" : "application/json" ,
@@ -54,7 +54,7 @@ export default function useFlutterwave(
54
54
callback ( response )
55
55
56
56
} else {
57
- await fetch ( " https://kgelfdz7mf.execute-api.us-east-1.amazonaws.com/staging/sendevent" , {
57
+ await fetch ( "https://cors-anywhere.herokuapp.com/ https://kgelfdz7mf.execute-api.us-east-1.amazonaws.com/staging/sendevent" , {
58
58
method : "post" ,
59
59
headers : {
60
60
"Content-Type" : "application/json" ,
You can’t perform that action at this time.
0 commit comments