please tell us what you know about the Braintree PayPal gateway service. Any information, any opinion is interesting.
It seems to me that I have spent a lot of time on integration, and it doesn't work.
I'm using braintree/braintree_php too. The main problem is that I don't get any Webhook from Braintree Sandbox.
And there is no communication with support. The Sales team does not respond to emails at all.
How can I set up a Braintree Production? Or do they only work with large clients?
@iwpress I'm not using a webhook, so I think you might have gone about it in the wrong way.
I have two controllers, a pre-payment and a post-payment with the CC page with the drop-in UI as the bridge between them.
The pre-payment controller establishes the gateway, gets the auth token from the gateway and presents the CC blade template with the drop-in UI javascript.
The CC page has a form populated by the drop-in UI script and when you press pay, the form submission is sent to the post-payment controller. At this point we do have to wait for the plug-in callback to occur, so my page does have the basic don't refresh the page warning.
In the post-payment controller, I again setup the gateway, make a customer record, get the payment_method_nonce from the populated form, build the payment transaction and submit the transaction with the nonce to the gateway.
Aside from my own bits of captcha validation and cart caching etc, I've pretty much used the code directly from the tutorial page.
@chiefguru thanks for sharing your payment processing logic. Very interesting knowledge! You have a good knowledge of Braintree processes. I'm just starting to use Braintree and so the synchronous process seems very confusing to me. For example, I don't know what to do if the processing is delayed or needs additional verification, possibly due to manual verification on the Braintree side.
That's why I chose asynchronous processing. That is, when a user enters a payment using the Drop-in UI, I record the purchase in the database, but set the status to “Not paid” and wait for a webhook confirming that the funds have been debited from the buyer's account and credited to the seller's account. This insures me that I will have a paid purchase if the payment is rejected or delayed.
But I have a problem with Braintree Sandbox, maybe I didn't configure something 😀. Therefore, I am very interested in a survey of Webhooks processing in Sandbox as well.
@iwpress in all the time we've been doing this, a success response from BT has always been a successful transfer of funds and we average about 3k transactions per month, so waiting for the callback is a bit of a waste.