Save PayPal with Vault Payment Javascript implementation - javascript

I have successfully implemented a checkout while saving payment to vault. But now I am attempting to simply save a payment to vault without checkout and am following this tutorial
https://developer.paypal.com/beta/vault/purchase-later/paypal/
But on this page there is nothing about the Javascript that needs to be used and I can't quite work out how to implement this.
Has anyone successfully implemented this and how was it accomplished?

Related

Paypal Subscriptions (JS Webhook) - any advice?

We have implemented a Paypal susbcription into our SaaS project.
The subscriptions are working fine and now we want to integrate webhooks to automatically work with cancellations / non payment.
We struggle to find any information on how to work with webhooks inside a javascript environment.
The only source we find is this:
https://developer.paypal.com/api/rest/webhooks/
Does anybody know about this or can give further advice?

auto-login powerbi service from custom application

I am very new to the powerbi world and have to take care of simple integration. I need my custom java/ javascript application to integrate with powerbi. I want to support auto-login for app.powerbi.com
The use-case is this. The user logs into my application with the credentials owned and managed by my application. Once they are logged in, there is a place on the UI which will redirect them to app.powerbi.com. What I want is that the user seamlessly logs into app.powerbi.com without providing the credentials again i.e auto-login.
I couldn't find such an API. As you may see this is not a PowerBI embedded use-case - I saw APIs for that but those do not seem to work in this case.  I simply need to redirect the user to app.powerbi.com and not want them to supply credentials there. 
Please guide me in this regard. Is there an API available that supports auto-login i.e I get a ticket first for powerbi and then supply that ticket with the redirect link to log in the user.

Stripe integration - Payment Intent with checkout redirection

I am working on to upgrade the checkout process to make it SCA complaint. As per their doc I need to use the PaymentIntents for it.
And I did follow the steps mentioned in their document: https://stripe.com/docs/payments/payment-intents/web
Now I was able to configure it properly but in this document it mentioned to have stripe-card-element. But I need to use the checkout redirection process instead of this card element.
Need to use this :
https://stripe.com/docs/payments/checkout/migration
If somebody know please share some info.
FYI, I already reached their customer support but they are taking way too long to respond and I am in hurry.
If you are using updated Stripe Checkout (that does the redirect for you), you do not need to create PaymentIntents manually. Checkout uses PaymentIntents under the hood and will automatically do that for you.
It looks like what you want is the client-server Checkout integration: https://stripe.com/docs/payments/checkout/one-time#client-server
i.e. create a Checkout Session server-side, then use Stripe.js and redirectToCheckout to redirect to the Checkout page using the session ID.
There is also a client-only integration that you could leverage: https://stripe.com/docs/payments/checkout/one-time#client-only

HTML / JS requesting information from user

Building a website which can take payments from clients, obviously the payment button from paypal just takes you to a payment link.
What I want is a form before this that takes client information and stores it and then advises they have made a payment once complete.
Is this the correct way of doing it?
Button is pressed
New webpage opens which requests client information
Information is sent to a Database (suggestions on which is easier to setup)
Client then proceeds to Paypal payment
Add in check, if payment successful, successful page displayed else failed, the page then advises of next steps.
Transaction complete
You can use PayPal Express Checkout to work directly with the form and database you create. Simply create your form add the PayPal Express Checkout API calls and create your database.
Below is the information on Express Checkout with the demo site and sample code.
Express Checkout Getting Started Guide
Express Checkout How Tos
PayPal Demo Portal with Code Samples
PayPal Code Wizard - This will generate sample code for Express Checkout including PayPal Functions.
Below is an image of what the Code Wizard looks like and the list of languages the Code Wizard Supports.

Humble bundles donations system, how does it work?

I am wondering how the humble bundles donation system works. https://www.humblebundle.com/
How do they know, at the end of the week, how much money was donated to whom?
I'm thinking on how to recreate this in js+php, but I am struggling to figure out how to track transactions.
Thank you in advance
-Jard
All of that data would go in your database. As each transaction comes through you'd save the payer info, receiver info, transaction info, etc. all together in related tables in the db system. You can generate your own reports out of that or write apps to pull data and loop through records to distribute funds or whatever you need to do.
As #Adelphia mentioned, to process the actual payments you can use PayPal's API's. For direct credit cards you'd need to sign up with Payments Pro. For PayPal or guest checkout payments (credit card through PayPal's pages without signing in) you can use Express Checkout.
I have a PHP class library for PayPal that will make all of the API calls very simple for you.
Using something like Paypal's do_direct_payments API you can have your users fill out their info on your site and then make the payment with Paypal's API using PHP. Or you can always just use Paypal's built in tracking tools.

Categories

Resources