How to generate Master Pass Merchant ID/Merchant PAN - payment

I am working on Masterpass QR integration which is a scan to pay feature where there will be a user and a merchant.Can anybody let me know the steps or algorithm for generating merchant PAN in masterpass QR.

According to this MasterCard page (which is for Africa), you don't need to generate anything. MasterCard generates the QR code and provides it to the merchant, who then displays it.
In general, the merchant identifier (PAN, MID, etc) will be provided to the merchant by their bank, and then entered into their POS or backend - there's nothing for you to generate.

Related

Payhip - Stripe payment testing

I'm new to both Payhip & Stripe. I'm testing out both products by setting up a test product in Payhip & making a purchase using a dummy visa card number (4242424242424242) from here
Payhip is connected to Stripe.
I keep getting the message - Your card was declined. Your request was in live mode, but used a known test card.
I've searched on google & read thorugh stripe documentation. I'm not able to find anything useful to solve this problem.
To use a test card in your integration, you need to use the test mode secret key instead. You can get it from the Stripe Dashboard -> Developer -> API Keys page.
The problem is not linked to Stripe i any form. There no way out to use a test card with Payhip. I contacted Payhip support & was advised as follows
One can either use a 100% off coupon (see here: Testing Checkout Flow) or put through a live transaction and refund yourself afterwards (How Do I Refund a Transaction?)

Phone number for testing Stripe connect standard account onboarding?

I'm testing onboarding for a a Standard Stripe Connect account, following the docs and using the phone number 00000000000 but:
I've tried 9 zeros and 10 zeros but both give the same result. I also tried removing the country prefix, but you have to select a country (removing country code is not an option).
Docs do say:
Force-skip the account form instead of having to fill out an entire account application (Standard)
But what if I want to see what customers see? Is that simply not possible, even in test mode?
That test phone number is specifically for Express onboarding, with Standard you'd skip the form entirely as you pointed out.
If you want to see what customers see, you could add a real phone number to get through the flow but stop short of actually submitting the form.

Stripe and UnionPay support

I was looking into Stripe and its support for UnionPay. On the website, we can clearly see logos that indicates support for UnionPay, but I couldn't find anything in API docs.
Was this supported some time ago and is now deprecated?
If not, can someone point me to their docs or better yet, show me an example performing Gateway payment using UnionPay?
As far as I know, China UnionPay is just a card brand (like Visa, Mastercard, Diner's Club, etc.) and there is nothing specific you need to do in order to process such cards with Stripe.
You should reach out directly to Stripe's support at https://support.stripe.com/email to get more information.
Stripe accepts cards with 16 digits ONLY at the moment.
China UnionPay card length is between 16 and 19 digits.
You can find more details about China UnionPay here

Nexmo - how to send messages to US/Canada based mobile numbers

I am trying to send SMS to the people all over the world using a non-registered short codes, but the sms cannot be delivered to US or Canada. How do I achieve this?
Is there an API to get information of the country using a phone number, so that I can know if the current number is of US or Canada's?
(Disclaimer: I work at Nexmo.)
To identify US vs CA numbers you can use Nexmo's Number Insight API. Besides the country you can also get lots of info, landline or mobile, carrier, reachable or not, etc.
If you you want to send to the US using short codes without needing a short code yourself, you can also use our US Short Codes API. If your use case fits into what we support (two-factor authentication, alerts, or marketing).

Stripe for one time payment. - Ruby on Rails

Can I use Stripe for receiving a one-time payment instead of recurring payments?
If so what settings do I have to make?
Yes, just use the Stripe::Charge.create method. As the payment method, you can either pass in a card directly or reference a Customer whose card should be charged.
You can receive one-time payments via the Stripe dashboard. Go to:
https://dashboard.stripe.com/payments
and click the button for a "+New" payment. That will let you manually enter the cc info. I do this with my Pairing as a Service clients all the time... they just read me their card info, and I enter it with the amount I'm charging them and a description. Your account password is then required to complete the charge.
It's fast and easy... I just wish there was a way to let them enter the info directly. Maybe I'll make something like that...
Yes, You can just create a Stripe account and use a simple example of Stripe payment for Ruby on Rails I've made recently. Check the code: https://github.com/ab00zar/StripePayment-example
Run the server using your test keys like:
PUBLISHABLE_KEY=pk_test_g0XSu8r2ugAETksVJQXJjU30
SECRET_KEY=sk_test_A3rwGLOMNxEKDkaJOTgi4frd rails s

Resources