In PHP, I am developing an application that is going to use the Braintree Marketplace functionality - for users within my platform to be able to handle escrow transactions for projects they post. I understand the code on how to do actual transactions, but I am having issues on the sub-merchant process and where that necessary code is supposed to go.
I have looked extensively on how to onboard sub-merchants with the code from their documentation, but where am I supposed to put all this? On its own separate page? The only coding example is the very basics here on Github. I need to be able to create these sub-merchants so that I can test escrow within their Sandbox.
It turns out that what I was trying to do was a limitation of Braintree itself. At that time, you were not able to test escrow transactions within their Sandbox. Not sure if that has changed over the past year.
For those looking for a much better payments API, check out Stripe instead.
Related
I'm going to try to explain the best that I can. Basically I want to implement Stripe Connect to our system, we are building a platform where we have an API Rest as a backend (builted with Symfony) & a mobile app created with React Native, that's the stack, and my question is which would be the best way to integrate Stripe Connect in this stack? Also I'm having issues following the PHP Stripe tutorials. If just some could guide me a little bit on where should I point would be so greatful!
Thanks!
This is not a question anybody can answer in any practical way. There is no single "best" way to integrate using Connect, it depends on your business and technical needs. For example are you operating a marketplace with service providers or are you a payment facilitator?
The marketplace guide includes a complete example that allows you to try it out and inspect the code.
If you have more specific questions about how to integrate pieces of this in PHP, you should ask those individually.
My aim is to have an on line system where people can transfer money via visa direct and also pay for the services.
For this I needed to integrate to visa network. However, am having some challenges doing the same.
Well, this is what I have found to be the steps towards integrating with them:
Create a sandbox account where sample code is provided on how you can hit their end point.
My problem came when I found the sample code provided uses PHPUnit hence I have a problem testing on a browser.
The sample code generated for you can only be tested on a terminal via ./vendor/bin/phpunit.. My interest is to be able to test the same on a browser. Can this be done?
After you are done with the tests, you request them to be allowed to move to production.
I am yet to get to this stage since I am stuck at one.
A major concern is that the email provided for communication during the development journey takes days before it is responded. This makes the development journey a bit too long.
Has anyone done this before probably in PHP and would be willing to help me?
Kind regards.
Your work process should be like that:
1- Your code:
You have your webserver and php backend.
2- Visa API:
Download Visa api via Composer.
Test if the api works by itself (isolated from your backend) using phpunit.
After running phpunit, you know your installation of the API is successful. Now you're ready to use it.
Note that the API vendor Visa have already wrote the tests and added phpunit package along with their api, so you just run phpunit.
3- Integration
In your backend, instantiate a Visa API object (I think their API is a class).
Do the function calls as per their API docs.
To write your code, you need to look at API, and use help from their tests and sample codes.
4- Testing
Either use a test suit like phpunit or something else.
If it compiles, it is tested ;) // Don't do that.
I need some help getting started with PayPal Adaptive Payments, it's the first time I'm using PayPal and I had no idea it would be this difficult, well at least for me.
I found this API integration code I'd like to use:
https://devtools-paypal.com/guide/ap_parallel_payment/php?interactive=ON&env=www
I have downloaded the: PayPal PHP Adaptive Payments SDK
Basically I have an Index.php file with the code I found on the API Integration, what do I need to include on the index.php from the SDK to get this sample code running and working?
Any help is highly appreciated!
Thanks.
Take a look at some of the samples from the GitHub repo and you can see what needs to be included. Here's a parallel payments sample.
It looks like all you really need is...
require_once('../PPBootStrap.php');
require_once('../Common/Constants.php');
On a separate note, you may be interested in taking a look at my PHP class library for PayPal. It's a lot easier to work with than PayPal's SDK, and I know a lot of PayPal integration specialists who actually prefer mine over their's as well.
I'm crating a Sagepay Direct implementation for a client, which deals with taking deposits and payments, as well as refunding deposits. This is fine for online payments, but the client also takes phone payments through Sagepay's Virtual Terminal.
I would like to handle these payments through my system, which would allow a higher percentage of the refunds to be automated but, despite searching Sagepay's resources, Google, and SO, I can't find any information at all on integrating with the terminal.
So, what I would like to know is:
Is it possible to integrate in this way, and if so are there some resources I'm missing?
If there's no official API, would Sagepay implement anything that would prevent automating the process through CURL or a similar technology.
I have worked with Sagepay (both Direct and Form) before and am quite familiar with the online payment side of things, but not familiar with the Terminal.
Okay, so I talked to Sagepay support and the answer is far simpler than I was expecting. I don't need to integrate with Terminal, I just have to use the standard integration and change the value of AccountType to 'M'.
I started a github project a few months ago when I needed an API integration with PayPal payments. The original idea was that one should be able to use one interface to process transactions through multiple payment systems.
I've been looking into the payments ecosystem and trying to figure out what would make really good library code for a payments interface.
2 things I ran across were Chargify and Spreedly. They let you use their API to accept payments and process through payment gateways all over the world - the mantra being you build the app, we'll handle the billing.
Are there any other similar sites / services that I should integrate with as well that you know of? If you are a PHP framework user, do you have anything to add about what YOU need or want to see in a payments library? Any potential "gotchas" or "hey, think about this" you can add?
I appreciate it!
Very helpful - libraries that come really close to what I was looking for:
Active Merchant for Ruby on Rails
Payment Process 2 for PHP