How to manage database and transaction status for shopify billing api? - shopify-app

I am developing shopify app. but confused in managing database for billing records and payment status. I don't know that I should manage each transaction's entry in database or not.

I got the answer ,
we don't need to manage database for payment status or billing records ,shopify will automatically handle it. we just need shop domain and access token.and if needed any information about billing then we can make a api call
"GET /admin/recurring_application_charges.json"
for more on this read this conversation
https://ecommerce.shopify.com/c/shopify-apis-and-technology/t/shopify-charging-for-our-app-flow-using-billing-api-397909

Related

Laravel - Paypal user to user money transfer

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.

Paypal Integration for users on my web panel

I'm quite new to laravel and payment integration.
I want to give an option to my web panel users to connect their paypal account with their own personal account on my web panel to receive payments.
and I want to give them a connect button for them to proceed.
Can someone please help me achieve the same.
Thanks in advance
You can use Log in With PayPal, possibly with the Partner Referrals API, to have them log in and get their PayPal account ID. This can be set as a payee.
Alternatively, you can ask them for their Client ID and/or Secret for a live REST APP, which they can log in there to obtain.

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.

PayPal Money Request automation in mvc 3

I have a button on my page (ASP.NET MVC 3) redirecting to the PayPal service.
I want to automate some process in my system, and I want to allow users to send the Money Request using PayPal.
But, is it possible to pass to the PayPal service (via URL ?) the Recipient's email address, amount and Request payment type (Goods/Services) ?
After the user is logged in, all that fields will be filled in. I'm totally new with that scenario, is it possible ?
You need to create a checkout form in your site and use paypal IPN.
When you create the check out form, you need to store in your database all the values the user gives you. Then send paypal the information you want using the IPN.
The IPN will come back telling you that the transaction was approved or not.
Here is a good tutorial.

Resources