How to perform Braintree transaction after receiving Nonce? - flutter

I am using Flutter_braintree plugin to integrate PayPal and Google Pay in my flutter app . I am able to get Nonce after performing BraintreeDropInRequest. I don't know How to process this Nonce for transaction. If there is any documentation please help me with it. May be I am doing something wrong.
Thanks in advance

Your server uses the nonce from the client to create a transaction. Read the Braintree documentation for whatever environment your server is.

Related

PayPal Vault integration

I am currently developing a mobile marketplace application using React-Native and Nest.js. I am implementing the 'onboarding before payment' flow for sellers, where I am storing the merchant id in my database. However, when a customer adds a payment method and I use the "v3/vault/setup-tokens" and "v3/vault/payment-tokens" to retrieve the vault_id, and then create an order using "v2/checkout/orders", I always receive a 422 response with the message "Payee account specified is invalid. Please check the payee.email_address' or payee.merchant_id' specified and try again. Ensure that either payee.merchant_idor `payee.email_address" is specified."
I have followed the steps outlined in the PayPal documentation but am still encountering this issue.
I would like to know if anyone has any experience with this issue and could provide guidance on how to solve it. I am also looking to integrate PayPal and credit card payments in my application and any suggestions on how to do this with React-Native and Nest.js would be greatly appreciated.

How to validate a PayPal webhook JSON message?

I am integrating PayPal subscriptions in a Django project. I have it working well but I'm thinking it could be possible that someone malicious can simulate a webhook call and get a free subscription. Currently I have no way to verify if the webhook really comes from PayPal.
In other payment systems I could set a secret word in the call (from the service provider) and then in the app server validate the call through the secret word.
There are several possible ways...
Post it back to PayPal, https://developer.paypal.com/docs/api/webhooks/v1/#verify-webhook-signature
Check the cryptographic signature, https://developer.paypal.com/docs/api-basics/notifications/webhooks/notification-messages/
Include a custom_id in the original transaction, which will be returned, https://developer.paypal.com/docs/api/orders/v2/#definition-purchase_unit_request
Just don't use one of the PayPal-*-SDKs, since they are deprecated.

How to test failed PayPal transactions through Braintree SDK

I am using Braintree SDK on ASP.NET Core and I can create transactions using the access code generated from developers.paypal.com however all transactions are accepted by the payment processor and gateway.
I've tried to enter the magic amounts that are supposed to trigger declines as listed on the Braintree documentation however I think that they only work when you use a Braintree sandbox access token and not a PayPal sandbox access token (mentioned here). I've tried using an error code as an amount as documented on the PayPal API documentation here but that was accepted as well as a valid amount and the transaction went through.
Do I have to sign up for a Braintree sandbox account and to be able to get one of the decline codes documented here?
Full Disclosure: I work at Braintree. If you need any further assistance, feel free to contact support.
If you are using the PayPal access codes, in order to receive the decline codes, you'll want to use the mocked checkout flow and will need to setup a Braintree sandbox.

‘Updating API Integration for Pro Hosted’

We recently made changes for the ‘Updating API Integration for Pro Hosted’
Updated these files: \includes\modules\payment\paypal.php
\includes\modules\payment\paypal_ipn.php
Find: https://www.paypal.com/cgi-bin/webscr
Updated by Replace with:
https://securepayments.paypal.com/webapps/HostedSoleSolutionApp/webflow/sparta/hostedSoleSolutionProcess
But now our customers cannot proceed in the checkout and get this error message:
Error Processing Payment Your payment can't be processed at this time.
Please try again later.
Please can someone assist us and help us resolve the problem?
Thank you.
In PayPal's instruction, PayPal don't suggest merchant to hard code https://www.paypal.com/cgi-bin/webscr?cmd=_hosted-payment in their script, so they advise merchant to replace this URL, but you don't need to replace 'https://www.paypal.com/cgi-bin/webscr' , this URL has no issue, it's PayPal's endpoint. You need to find this specific link: https://www.paypal.com/cgi-bin/webscr?cmd=_hosted-payment , then replace it according to the instruction.

PayPal PDT like functionaility for Stripe

I am planning to use Stripe to accept payments for digital products and want to redirect the (legit) user to a download/thank you page after payment. Until now, I have been using PayPal and its PDT service helped me do just that. Infact, I could do a callback to PayPal from the download page, to confirm that the transaction info was correct, that the order was actually placed and then process the same (did so using the following tutorial:- http://www.paysketch.com/setup-paypal-pdt/)
I have been looking around a lot, but have been unable to find PDT like functionality in Stripe. What way can I implement the same? Following are the primary motives:-
User should be redirected to a thank you/download page after payment
My script should be able to verify the same from stripe
Please suggest.