DeligenceTechnologies / Braintree-Payment-Gateway-for-Flutter

Braintree Payment plugin for Flutter apps from Deligence Technologies. This plugin lets you integrate Braintree Drop In payment UI in just 4 easy steps.
BSD 3-Clause "New" or "Revised" License
34 stars 27 forks source link

PayPal not working or needed help to integrate #42

Open aTeamSolace opened 4 years ago

aTeamSolace commented 4 years ago

Hello, I'm trying to integrate https://pub.dev/packages/braintree_payment to this package. I'm also done with android manifest changes also made minimum SDK to 21. But now when selecting the payment method of PayPal then open this window https://github.com/aTeamSolace/myExample/blob/master/processed.jpeg after a click on the proceed button this will return on back page. How to enter card details and how to proceed with the further process for payment I don't know about this. Please help me. I trying from last 3 days but can't get anything I'm stuck now please help me

` String clientNonce = "eyJ2ZXJzaW9uIjoyLCJhdXRob3JpemF0aW9uRmluZ2VycHJpbnQiOiJlNTc1Mjc3MzZiODkyZGZhYWFjOTIxZTlmYmYzNDNkMzc2ODU5NTIxYTFlZmY2MDhhODBlN2Q5OTE5NWI3YTJjfGNyZWF0ZWRfYXQ9MjAxOS0wNS0yMFQwNzoxNDoxNi4zMTg0ODg2MDArMDAwMFx1MDAyNm1lcmNoYW50X2lkPTM0OHBrOWNnZjNiZ3l3MmJcdTAwMjZwdWJsaWNfa2V5PTJuMjQ3ZHY4OWJxOXZtcHIiLCJjb25maWdVcmwiOiJodHRwczovL2FwaS5zYW5kYm94LmJyYWludHJlZWdhdGV3YXkuY29tOjQ0My9tZXJjaGFudHMvMzQ4cGs5Y2dmM2JneXcyYi9jbGllbnRfYXBpL3YxL2NvbmZpZ3VyYXRpb24iLCJncmFwaFFMIjp7InVybCI6Imh0dHBzOi8vcGF5bWVudHMuc2FuZGJveC5icmFpbnRyZWUtYXBpLmNvbS9ncmFwaHFsIiwiZGF0ZSI6IjIwMTgtMDUtMDgifSwiY2hhbGxlbmdlcyI6W10sImVudmlyb25tZW50Ijoic2FuZGJveCIsImNsaWVudEFwaVVybCI6Imh0dHBzOi8vYXBpLnNhbmRib3guYnJhaW50cmVlZ2F0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5Y2dmM2JneXcyYiIsInZlbm1vIjoib2ZmIn0=";

payNow() async { BraintreePayment braintreePayment = new BraintreePayment(); var data = await braintreePayment.showDropIn( nonce: clientNonce, amount: "2.0", enableGooglePay: true, nameRequired:true); print("Response of the payment $data"); }`

Response of the payment:- {paymentNonce: bbf9aa7f-48d2-0fc3-87f5-dec6448081e9, message: Payment Nouce is ready., status: success}