Can I generate custom Dwolla buttons for each of my users with just their Dwolla ID and my Application Key - dwolla

So my web application will have users, and each user has customers. Each customer has their own customer page where they can see and pay the user any remaining balance on their account.
I want to create "Pay Now" buttons that link to the user's Dwolla account, and return the customer back to my site after they have submitted the payment. I don't want to make each user generate their own button though. Is there any I can generate a button for them with my own application key and their Dwolla ID?

You wouldn't use Dwolla payment buttons for scenario. You can simply integrate with our Off-Site Gateway API. Check out the Server-to-Server workflow here.
Essentially, your webapp will POST to Dwolla some details about the checkout you’re trying to create (destination, amount, etc.) and Dwolla will respond with a CheckoutId.
From there, you'll use the CheckoutId to construct a URL which you'll send the user off to by means of a redirect or a link.
Here's a demo of what this flow would look like to a user.

Related

PayPal as payment gateway on my marketplace website

I have a website where my users can create custom pages to sell virtual things. At the moment, the only payment gateway their buyers can use is Stripe since it's the only my website currently supports. I would like to add PayPal support, so my sellers can enter their PayPal email, then buyers can purchase goods using PayPal.
I looked into PayPal's API, and the only thing I could really find was the checkout API for commerce. I'm not interested in having any of that fancy API, or needing to have sellers enter API key(s). I simply want sellers to enter their PayPal email, and boom - done. I also do not want to have to get a verified business on PayPal if possible since I still need to do a lot of work before submitting my application for approval from PayPal.
Example:
Joe creates a page on my website to sell pictures. He wants to add PayPal support, so he goes to my website's dashboard, enters his PayPal email, and then clicks confirm. Now his buyers can purchase his pictures using PayPal.
Where should I be looking for information on this?
Create a PayPal business account. Follow the Set up standard payments guide and make 2 routes on your server, one for 'Create Order' and one for 'Capture Order', documented here. Both routes should return only JSON data (no HTML or text). Inside the 2nd route, when the capture API is successful you should store its resulting payment details in your database (particularly purchase_units[0].payments.captures[0].id, which is the PayPal transaction ID) and perform any necessary business logic (such as sending confirmation emails or reserving product) immediately before forwarding your return JSON to the frontend caller.
Pair those 2 routes with the frontend approval flow: https://developer.paypal.com/demo/checkout/#/pattern/server
To send the funds to another account, specify a payee in the order creation request.

Paypal subscription flow

I need some clarification about the best way to combine paypal subscription in my website registration flow.
The steps for registration:
user chose a price plan by clicking on paypal subscribe button
the use complete payment on paypal form
the user return back to my site to fill registration form.
How can I be sure that the user that fill the site registration form payed for the subscription on paypal and didn't got directly to the registration page?
How can I know on which subscription button the user clicked and how much he paid?
Is there any tutorial that describes such a scenario and which api call I should do?
The smart subscription button has an on approval type of action with the subscriptionId. Use this to send to the backend (or your cloud hosted function) and it will do the follow:
check that its valid
use that paypal email and check that no user with that email exists
use that email to create a new account (add to auth and database with the subscriptionId, planId, paypalId, paypalEmail (incase they change away from this), name, etc.)
send that user a password change email / welcome email
respond with success and kick them to the success page which tells them to check their email and spam
Note: for paid-only accounts make sure you don't have an auth sign up page, only a paypal button subscribe page as the sign up page.

Paypal send money from website

on paypals page, you can click on 'send money' enter the email address and $$amount and hit send... and then paypal asks for login etc...
what I want to know, is there a way, I can essentially submit that form with the email address and $$ already populated
something like paypal.com/sendmoney?to_email=xyz#xyz.com&&amount=25.00
I want to be able to provide my users with a link that already contains the info so they dont have to click the link and then fill in the details when they get to the page..
You can't do that directly with the PayPal page, but you could build your own version of that page using the Adaptive Payments API, specifically Pay.

Send an e-mail to PayPal buyer

I'm introducing PayPal Digital Goods for Express Checkout on a web site. For an user who is logged in, a valid checkout results in an update in the user's profile on the website, which in order allows to access more content.
The owner wants to add support for clients which aren't yet logged in to the web site. We handled this by introducing a landing page with an unique URL, which the user is redirected to after payment and which can be used to create a new account or mark an existing account as paid. If the user doesn't want to do this immediately, the URL of the landing page is persistent and bookmarkable.
However, in case the client doesn't want to log-in immediately and fails to bookmark their unique link, we'd want to additionally send a confirmation e-mail which would contain the link.
Paypal sends a receipt e-mail to the buyer right after purchase. Can I somehow insert additional message for the client in that e-mail?
If not, is there any other PayPal API feature which would let me send a message to the client's e-mail registered with PayPal?
Unfortunately you won't be able add or modify the content in the email message sent by Paypal. They lock down those type of things for security purposes.
However, you can send your own confirmation email once you receive notification that the payment has been completed. Whether you are using PHP or another server side language, you should be able to collect the email address from the variables returned by PayPal and send a custom email using the mail function. Since you create a custom landing page for the user, you can simply send it from here.

Paypal Payment Gateway without shopping cart

I need guidelines to integrate paypal payment gatway. Here is my requirement
User would click on pay button on my website to open paypal payment gateway page.
User may not have a paypal account. He/she need to enter details of credit card only. (It should not force user to login)
User will enter what amount he want to pay?
I do not need any response or confirmation from gateway. I would see details of transaction in my email.
1.User would click on pay button on my website to open paypal payment gateway
page.
Create payment buttons using our button creation tool. Learn how
2.User may not have a paypal account. He/she need to enter details of credit
card only. (It should not force user
to login)
AFAIK this is not possible. User should have paypal account and one of the main advantage of using paypal is that users need not reveal the credit card details.
3.User will enter what amount he want to pay?
Similar to Donations button from paypal
4.I do not need any response or confirmation from gateway. I would see
details of transaction in my email
What email??? If you dont need the result then how will you know that the payment was successful or not???
What you are trying to do above is not possible. If You are using other paid payment gateway providers then you will be able to solve issue 2. Other than I dont think what you ask is possible.