File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
src/components/Playground Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -7,4 +7,4 @@ NEXT_PUBLIC_DEMO_URL="https://calendly.com/mariana-rn/request-network-intro"
77NEXT_PUBLIC_INTEGRATION_URL = " https://docs.request.network/building-blocks/templates/request-checkout"
88NEXT_PUBLIC_RN_API_CLIENT_ID = " rn_f6mr53l2yfcdv4sych5adq7gez3avurq"
99NEXT_PUBLIC_REQUEST_API_URL = " https://api.stage.request.network"
10- NEXT_PUBLIC_EASY_INVOICE_URL = https://easyinvoice.request.network
10+ NEXT_PUBLIC_EASY_INVOICE_URL = " https://easyinvoice.request.network"
Original file line number Diff line number Diff line change @@ -142,12 +142,15 @@ export const Playground = () => {
142142 paymentConfig={${ formatObject ( cleanedPaymentConfig , 2 ) } }${ formValues . uiConfig ? `
143143 uiConfig={${ formatObject ( formValues . uiConfig , 2 ) } }` : '' }
144144 receiptInfo={${ formatObject ( cleanedreceiptInfo , 2 ) } }
145- onSuccess ={() => {
146- console.log('Payment successful');
145+ onPaymentSuccess ={(requestId ) => {
146+ console.log('Payment successful', requestId );
147147 }}
148- onError ={(error) => {
148+ onPaymentError ={(error) => {
149149 console.error('Payment failed:', error);
150150 }}
151+ onComplete={() => {
152+ console.log('Payment process completed');
153+ }}
151154>
152155 {/* Custom button example */}
153156 <div className="px-8 py-2 bg-[#099C77] text-white rounded-lg hover:bg-[#087f63] transition-colors text-center">
You can’t perform that action at this time.
0 commit comments