How does merchant receive customer's info when customer use Android Pay? - android-pay

I'm interested in integrating Android Pay into my store.
But i want to know : "when customer buy goods via Android Pay, what data i will get from customer to my server ? "
Example : https://developers.google.com/android-pay/diagrams#detailed_api_process_flow
in this guide below, at step 6 : "the app passes the Android Pay payment credentials provided by Google in the Full Wallet to the merchant server or payment gateway."
I don't know what type of data i will receive, which data I can receive to my server.please give me specified example about this data ( JSON type of not ? v.v).
How can I get list customer buy goods/service use Android Pay at my shop by API ?
Can I send API request to Android Pay to get list customer by my goods/service?
How can I demo 1 progress use Android Pay, i am outside US ?

Related

Stripe subscription with Apple Pay

I’m trying to setup a payment method for a subscription on mobile with flutter and .net as backend.
For that here is my flow :
I create a customer and a SetupIntent backend side
I send the details to flutter and it present the payment sheet to customer letting him choose Apple Pay as a payment method
when SetupIntent is completed mobile side I’m listening for it on web-hook backend side and I create the subscription with a trial period and the SetupIntent Id just created.
It works pretty well but I have a problem with apple validation.
When customer choose Apple Pay as a payment method It display « amount pending » instead of the subscription plan price and recurrence. Which is normal since I didn’t create the subscription at this step. But it’s rejected by Apple.
I checked the SetupIntent to see if I can attach a subscription to it to let the pricing appear but it seems not.
I checked the doc and the only sample I see is related to checkout portal but I want to use the element payment sheet to the customer.
As you can see in the Apple guide it should be display like the first screenshot of this page : https://developer.apple.com/design/human-interface-guidelines/apple-pay/overview/subscriptions-and-donations/
Does anyone know how to achieve this ?

How do I add a bank debit or credit card into Google Wallet programmatically?

I'm working on a project for a financial institution and they would like to add their debit/credit card to Google Wallet automatically, from within their own app.
I can't seem to locate the correct API for this. Any direction will be appreciated.
TIA!
See my previous answer for How to add credit card to Google Pay from my app?
The name of the feature that you are after is called Android Push Provisioning API. You'll need to request access via: https://developers.google.com/pay/issuers/requesting-access?api=true

Saving User's card in Square Payments

I'm new to Square and want to implement it in a React Native app with a Node backend.
I see that there is a method to save the customer's card details.
https://github.com/square/square-nodejs-sdk/blob/master/src/api/customersApi.ts#L230
But there is also the payment form?
https://developer.squareup.com/docs/payment-form/how-it-works
Firstly, I cannot see if the payment form is even available in React Native - information seems very scarce.
Secondly, even if I do implement that form, I can't see a way to connect it to the customers API endpoint.
I don't want to use in-app payments (i.e. google or apple pay). I want to be able to save card details like Amazon does, and use them whenever a user places an order in app (probably triggered by a node process). I'm not sure if I'm going about this the correct way, guidance would be appreciated.
In-App Payments SDK will be the way to go (and there is a React Native plugin already). The In-App Payments SDK is basically a mobile Square Payment Form, that you linked to. It will generate a secure nonce, and you can use the nonce to save the card on file. The next time the customer comes, instead of bringing up In-App Payments, you can simply call CreatePayment in your backend, with the customer_id and the customer_card_id as the source.
As for "connecting it to the Customers API" - you don't connect it directly per se. You would collect information from the customer, on your own, and pass it directly to the Customers API to create a customer. You can then call CreateCustomerCard using the nonce (generated by In-App Payments), and the customer_id that you just created, to save the card to this customer profile.

Does Google Wallet / Google Wallet for digital goods API Support 3D-Secure?

I am seeing a % of failed transactions with Google Wallet. The error message that I get is
You cancelled this order. Reason: Other. Message sent to the customer: We were unable to process your order..
I have phoned for Wallet support and I've been told that the two examples of failed transactions were down to latency issues.
Whilst I haven't been able to prove it - I suspect that Google Wallet doesn't support 3D-Secure
http://en.wikipedia.org/wiki/3-D_Secure
A google search gives me more questions and doubt but no definitive answer
Does anyone have any experience with this working / not working?
Ben
I had the below email response from Google support, hopefully it will make the situation clearer for others having similar issues.
Please be advised that Google Wallet does not currently support 3-D Security protocol, which is used by Verified by Visa, MasterCard SecureCode and similar services. If your card-issuing bank requires this feature, we suggest using an alternate credit card for your Google Wallet transactions
Google wallet uses direct CVV access , it is successfully carrying its operations at USA because most of the banks are using CVV tech till now, in Asia till now it is only available om discover( Dinner Club Card international Network) and JCB card issued in Japan and China. Google wallet is not supported on verified by visa or by Master-card secure code, if you want to use Google wallet you need to have a valid US address with valid US phone number, if you want the service in japan you first need to access your NFC chip present on your debit/credit card by your mobile then install Google wallet. Till now it is not present on any other Asian country , Yes it is available in Russia but you cant add more than 3000 Rebels into your Google account. Wait till it gets into your country or use similar app provided by bank/developers from your country.

Amazon or priceline credit card payment system implementation

This is the scenario I expect the system behave:
I have a platform where users can register and store their credit card information online, and with specific user's action, system automatically settles payment.
Of course, user expect automatic payment system as we said so when they enter their card information, and the purpose of this is to simplify the process when they decided to pay for something.
My question is this:
I found that Amazon saves user's card information when they purchased some products then user doesn't need to put all the card information again but just select from the list of cards he used and with one click, it finishes payment.
Also, in price line, I found that it automatically settles after bid accepted.
So I tried to find the provider or payment gateway company that Priceline or Amazon provide, and tried to find the way to implement the system at least, but couldn't find any. What I have found so far were like, using paypal, and it requires user to have paypal id
I'm doing this in PHP, can anybody give me some clue please?
Thanks in advance.
You should be able to do this with most payment gateways that support recurring payments.
Typically what you would do for new customers is capture their card details 'as normal' (via the payment gateway). The payment gateway will return a token id which you then store against the customer record
Next time that customer makes a payment you can submit the tokenised card number to the payment gateway
Since you mentioned Amazon, you might want to look at their payment service API: http://aws.amazon.com/fps/

Resources