Laravel 5.2 two Paypal REST API SDK account - php

How will I put two apicontext in my system? I already made a paypal rest api sdk in my system and it is running properly, Now I need to put another paypal account but I dont know how will I put it. How will I do this in laravel?

Related

Create a Webhook when installing an app in Shopify

I'm developing an app to sync Shopify product list with my own DB.
When a product is deleted from Shopify admin, I need to delete it in my MySQL DB.
I think I have to create a Webhook for product deletion.
I know the way to create Webhooks in Shopify admin page, but I'd like to create it when my app is installed.
Please give me your answer if you have any idea.
I've tried to find answers for this problem, but couldn't find any solution.
I suppose you are looking for automated Webhook Subscription via API. Yes, Shopify does allows that.
You need to Subscribe to the hooks via API call when you app is being installed or autorized by the Shopify store. Please check the Documentations below.
For understanding the webhooks and behaviours: https://shopify.dev/apps/webhooks
Apis for Webhook Subscription: https://shopify.dev/api/admin-rest/2022-10/resources/webhook

Integrate Quickbooks as a payment method on website

I need to integrate QuickBook as a payment method with a website. For this, I would like to connect to QuickBook and create an invoice or payments links and redirect customers to them as I do it with Paypal and after catch the webhooks from QuickBooks about payment status.
Here is a page for paying with Quickbook (You can make a payment link manually in your account):
I want to create such links with api for php (laravel). There is no api for directly creating payment link though api, but there is an option to create invoices with link. I've managed to create such invoices calling the QuickBooks api through Postman but that link doesn't work. It opens an error page.
Here is that page:
There is no much information about paying on the website with QuickBooks, so I am not quite sure is this task a achievable. But if anyone did something similar or has some experience with integration QuickBook to e-commercial websites, please give me a hint
The thing was that the QB has an error in sandbox mode. If you try to call this route in live mode everything will work. Here is a link for my issue on the Intuit Developer Forum https://help.developer.intuit.com/s/feed/0D54R00008D4MIwSAN
The first thing you want to do is set up your application on Quickbooks Online. Here is a Quickstart guide: https://developer.intuit.com/app/developer/qbo/docs/get-started
Then you should consider using the PHP client library for OAuth: https://developer.intuit.com/app/developer/qbo/docs/develop/authentication-and-authorization/oauth-2.0
Then you can start looking through the Quickbooks Online API, and see if they have API to solve your needs: https://developer.intuit.com/app/developer/qbo/docs/api/accounting/most-commonly-used/account

Laravel cashier in rest api

I'm creating a rest api for a new web system. The api is made using the laravel framework, and I've also created a client application which is a separate laravel site. The client just uses guzzle to connect to the api, I've done it like this because we will eventually have an app connecting to the main api.
The issue is that the php sdk for braintree payments doesn't directly support laravel very well, and the laravel cashier site seems to be for taking payment on the same website.
I'd like to know if anyone has done this before? How would you setup the separate laravel site so that it can take payments in some way via the rest api?

PayPal REST API Authorise Payment PHP

I've been searching the web for a solution to this or just some decent documentation but I am at a loss.
I am trying to authorise payments made from an app using Paypal Cordova SDK which is similar to PayPal IOS SDK.
I have a server running PHP 5.4 and I have installed using composer the PayPal REST API SDK onto my server. I need some help or a small sample script to show me how to authorise a payment made to my server (For such a big company PayPal's documentation is really hard to navigate, search or use.).
My other question is where do I put the link to authorise payments (IP/authorise.php). Do I attach it to my developer portal on PayPal some how?
Many Thanks

Integrating Google Wallet in PHP web application

I am trying to run a sample PHP web application integrated with Google Wallet. Similar to this: http://iap-php.appspot.com.
I have been following the documentation provided in https://developers.google.com/wallet/objects/quickstart-php#register. I created a project. And I couldn't get Wallet Object API in the list.
And I am stuck here:
And on clicking "sign up for Wallet Objects API access", I have filled the form and got a mail from Google that:
We are reviewing your information and will update you via email on your eligibility and next steps soon.
And I am unable to continue further.
Basically I wanted to run this integration with PHP on my localhost for testing purpose. How do I setup wallet objects? What docs I have to read? From where do I have to start?

Categories