Laravel - Paypal user to user money transfer - laravel

i have a donation website where users post their cases and any other user can donate to them, i want to implement paypal integration but my question is what do i write in the paypal clientid and secret key if the receipient is different for each case? every tutorial i see, it has a fixed receipient so they just write the clientid of their merchant account, but in my website there is no fixed receipient as each user that posts a case can receive donations.
sorry if my question is too basic but this is my first time working with paypal. any help is really appreciated!

For payments directly to another account, there are two different integration options:
Checkout flow :: specify the payee.email_address of the recipient's PayPal account when creating the order. See the documentation.
Donation flow :: specify the recipient account as the business parameter. See the documentation. Do not specify a hosted_button_id. Specifying a fixed amt is optional.

Related

How do I create a user wallet in Stripe?

I’m trying to create a wallet for a user in Stripe. Other uses can donate into another user’s wallet and that user can withdraw the funds into their account. This account should remain untouched by the account owner and controlled by the software.
This will need to be seperate from the primary account which holds funds for subscriptions from users which the Stripe account owner can withdraw (income).
Is this possible with Stripe/Stripe Connect and can anyone point me in the right direction?
You'd indeed need to use Stripe Connect for this.
This isn't really a programming question so you likely won't find much help here. You should reach out Stripe's support directly at https://support.stripe.com/email and explain your business model with as much details as you can (who you are, who your users will be, where are you and they located, what would a sample transaction look like, etc.). They will be able to guide you and help you design your payment flow using Stripe's API.
You can create a wallet by using charge feature of stripe i.e. for nodeJs it is stripe.charges.create({}) function.
It may vary depending upon your language of choice. You can prompt the user to recharge his wallet and create a charge through which you can transfer the amount to the admin account use a parameter in your db to store the user's current wallet balance for each payment deduct the required amount from the said user's account and add it to the other user's account.
Click here for more details !
Cheers!

How to create e-wallet in laravel website

I am developing a website in laravel I want to apply a e-wallet system on my website(Like Paytm).
This is first time I am doing this, I read on different places, saw methods using java and also read that I can sign-up for existing Wallets like PayTM, Payu Money, etc and integrate the same in the store.
But how to do it?
I used: https://github.com/tzsk/payu to add payu on my website.
Can you please tell me how can I make such a wallet? I have a wallet named table in databse when I added payu with one of the pages, I think it might bs used?
I made this wallet link, which will link user to different page where he can add money to his wallet as in here : https://paytm.com/paytmwallet
But, how can I add the payu feature of adding money to the wallet there?
You have to register as a merchant for a payment gateway on payemnt gatway providers like traknpay or payu and if your business is approved they will provide you with all details about integrating it in your website using there apis.

Deciding on customer id and saving payment method after transaction in Braintree

I would like to have the following workflow on our website with Braintree payment gateway: a customer which is or isn't logged in pays with a credit card (using Braintree hosted fields). If the payment is successful and customer is not logged in, we offer him to login or register in order to save the payment method.
Unfortunately, that means that in Transaction.sale I cannot use the existing customer id, since the customer is not yet logged in our system. And after the transaction is complete, I cannot reuse payment nonce to create payment method and assign it to our customer.
One possibility I am considering is to always vault the payment method during transaction (with a new Braintree customer id) and than to assign this customer id to our user's account if he logs in. However, that can result in one user having multiple Braintree customer ids which would complicate later payments with saved cards. (Plus I have to vault a lot of fake customers and payment methods that will never be used again since majority of our customers never create user accounts.) Is there a better way?
Full disclosure: I work at Braintree. If you have any further questions, feel free to contact support.
You are correct. To achieve this flow you would need to create a new customer and payment method each time. The good news is that Transaction.sale does not require a customer id, just a payment method token, so you can associate the payment method token with your app's customer id and you won't need to maintain a relation to the customers in the Braintree control panel.
For clean up, you could do the following:
1) If the user declines the option to save the payment method, delete the customer and payment method token immediately.
2) If the user closes the application without making a decision one way or the other, you could have a periodic process to clean up unclaimed customers and payment method tokens.

How would I test payment methods within magento 1.8.0.0.?

I was just wondering if anybody knows how to test magento's payment options.
I have got a few questions.
Do I need to change any code within any of the pages?
Do I need to make any changes to the admin settings ?
Is there a simple setting to test these payment methods out?
Is there only certain payment methods that you can actually check?
No you dont need to change any code. Its all handled from backend.
Generally for development purpose we use Cash on delivery or Check/Money Order payment method.
So you just need to enable these method from backend.
For Testing Credit Cards enable 'Saved CC' Payment Method and during checkout use test credit card type VISA, card number 4111111111111111 with any date of future for Expiration Date and any cvv number
Additionally for proper payment gateway integration You will need to purchase payment gateway which will provide Magento Module along with it. This Payment Method will have 2 modes test and live that are configurable from banckend. So with test mode you can continue development and testing.
Similarly with Paypal. Yo can setup Sandbox test account. Module is already there.
If you want to use Express Checkout:
Go to developer.paypal.com and log in using your PayPal account (it doesn't matter if the acount is empty or not).
Click on the menu item on the top dashboard and then select Accounts from the sidebar.
There, you will find 2 test accounts already set for you. You can modify the existing acounts or create new ones.
This post may help you.
Yes you can test on local host with setup sendbox account.
You can create a 99% discount coupon.
PS: From my experience, that's the standard to test live websites. The sandbox payment only works on staging/dev sites, as it puts the entire website on dev mode.

How do I login with PayPal to save user_id?

Is it possible to use a "login with PayPal" button through the PayPal API? I want to use it as a twitter signin to link your paypal account once to the app, then have it store a user_id.
Is this possible?
I want some kind of 'connect to paypal' behaviour. Think about a shop where goods are sold and get paid to the shop onwers paypal account. The shop owner must verify (connnect) once his paypal account and the app will then know where all payments must go.
It is also possible to just ask for the shop owners paypal email account, but this ain't really low level in my opinion.
If this even was posssible to do I wouldn't do such a thing for authentication.
The reason is, the user could easily assign that he has to pay for every login with this procedure.

Resources