You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importReactfrom'react';import{SafeAreaView,ScrollView,Button}from'react-native';importKhipufrom'react-native-khenshin';functionApp(this: any): JSX.Element{constonStartPayment=()=>{Khipu.startPaymentById('mboyd2tem42r').then(({status, result})=>{if(status==='CONCILIATING'){// khipu is conciliating the payment}elseif(status==='USER_CANCELED'){// The user cancelled the transaction}else{// Error!, see `result` for detailsconsole.log(result);}}).catch((err: any)=>console.log({err}));};return(<SafeAreaView><ScrollView><Buttontitle={'pagar'}onPress={onStartPayment}/></ScrollView></SafeAreaView>);}exportdefaultApp;