Secure Remote Commerce program guide (2024)

Accept payments using Secure Remote Commerce in your existing Stripe integration.

Use Secure Remote Commerce (SRC) to securely pay online, and use the global payments industry to protect your payment information. Users can add cards from Visa, Mastercard, American Express, and Discover to enable Click to Pay. SRC supports all participating network brands.

Note

Before implementing, refer to the implementation requirements. By using Secure Remote Commerce through Stripe, you agree to the Operating Rules. Mastercard offers SRC through its Masterpass platform.

Integrate the Secure Remote Commerce button Secure Remote Commerce program guide (1)

To get started, generate your Masterpass Checkout ID in the Dashboard and configure your sandbox and production callback URLs. Mastercard offers SRC as an update to their Masterpass service.

To use SRC on your website, add the following script tag to your HTML document:

ParameterDescription
localeThe country (and language) of the business. en_US is the only valid value because SRC is only available to US businesses.
checkoutidThe Checkout ID from Mastercard, copied from the Masterpass section of the Dashboard.

To display the Masterpass button with black text, use the following image:

To display the Masterpass button with white text, use the following image:

ParameterDescription
localeThe country (and language) of the business. en_US is the only valid value because SRC is only available to US businesses.
paymentmethodThe list of accepted card brands, comma separated (for example: “master,amex,visa,diners,discover,jcb,maestro”).
checkoutidThe Checkout ID from Mastercard, copied from the Masterpass section of the Dashboard

Attach a click handler to the image and use it to invoke the masterpass.checkout function with the desired parameters:

const button = document.getElementById('mpbutton');button.addEventListener('click', (ev) => masterpass.checkout({ checkoutId: '{{MASTERPASS_CHECKOUT_ID}}', allowedCardTypes: ['master', 'amex', 'visa'], amount: '10.00', currency: 'USD', cartId: '{{UNIQUE_ID}}', callbackUrl: '{{CALLBACK_URL}}' }));

The masterpass.checkout function requires the following parameters:

ParameterDescription
checkoutIdThe Checkout ID for your Masterpass project, copied from the Dashboard
allowedCardTypesA list of the Masterpass-compatible payment providers that you want to support
amountThe amount of the transaction, expressed in decimal format
currencyThe currency to use for the transaction
cartIdA unique string that you generate to identify the purchase
callbackUrlYou can use this optional parameter to override the default callbackUrl configured when activating Masterpass

For more details about the masterpass.checkout function and the parameters that it accepts, refer to Mastercard’s documentation.

Complete the payment Secure Remote Commerce program guide (2)

When the user clicks the Masterpass button on your checkout page, it takes them to the Masterpass website where they can select an existing payment method from their account or input a new one. When the user completes the process, Masterpass redirects them to the callback URL that you configured when activating Masterpass, or to the specified callback URL when invoking masterpass.checkout function. It appends an oauth_verifier URL query parameter that your application can use to complete the transaction.

In the route handler for the redirect destination, extract the URL query parameter and use it to confirm the PaymentIntent that you have created at the beginning of the checkout flow. See accept a payment to learn how to manage your checkout flow using Payment Intents.

The following code example demonstrates how to confirm a PaymentIntent with SRC in Node.js with the Express framework:

app.get('/callback', async (req, res) => { // retrieve the PaymentIntent ID created at the beginning of the checkout flow. const payment_intent_id = '{{PAYMENT_INTENT_ID}}'; const payment_intent = await stripe.paymentIntents.confirm(payment_intent_id, { amount: 1000, currency: 'usd', payment_method_data: { type: 'card', card: { masterpass: { cart_id: '{{UNIQUE_ID}}', transaction_id: req.query.oauth_verifier, }, }, }, }); res.send('<h1>Charge succeeded</h1>');});

Test Secure Remote Commerce Secure Remote Commerce program guide (3)

To test your SRC integration against Mastercard’s sandbox, create a new SRC user account during the checkout process on your website. Configure the account to use one of the test cards from the Masterpass documentation. Complete the checkout process as normal, selecting the test card as your payment method. If everything works correctly, Mastercard redirects you back to your application, which creates the charge as expected.

The SRC integration only works correctly when included on an http or https page. Stripe doesn’t support serving from the filesystem, even during testing.

Secure Remote Commerce program guide (2024)
Top Articles
First Meeting with a Financial Advisor | Wells Fargo Advisors
How to Pay Off a Mortgage in 5 Years - SmartAsset
Jackerman Mothers Warmth Part 3
Dollywood's Smoky Mountain Christmas - Pigeon Forge, TN
What to Serve with Lasagna (80+ side dishes and wine pairings)
My Boyfriend Has No Money And I Pay For Everything
No Hard Feelings Showtimes Near Metropolitan Fiesta 5 Theatre
O'reilly's In Monroe Georgia
How Far Is Chattanooga From Here
Irving Hac
My Vidant Chart
B67 Bus Time
Santa Clara Valley Medical Center Medical Records
OpenXR support for IL-2 and DCS for Windows Mixed Reality VR headsets
Lax Arrivals Volaris
Minecraft Jar Google Drive
Moviesda3.Com
Craigslist Panama City Fl
Wausau Marketplace
10 Fun Things to Do in Elk Grove, CA | Explore Elk Grove
Dragger Games For The Brain
Brbl Barber Shop
Parkeren Emmen | Reserveren vanaf €9,25 per dag | Q-Park
Klsports Complex Belmont Photos
Cowboy Pozisyon
3 Ways to Drive Employee Engagement with Recognition Programs | UKG
Shiny Flower Belinda
Meowiarty Puzzle
Vadoc Gtlvisitme App
Citibank Branch Locations In Orlando Florida
Little Caesars Saul Kleinfeld
Gyeon Jahee
Http://N14.Ultipro.com
New Gold Lee
Rochester Ny Missed Connections
Eastern New Mexico News Obituaries
Froedtert Billing Phone Number
Encompass.myisolved
World Social Protection Report 2024-26: Universal social protection for climate action and a just transition
Complete List of Orange County Cities + Map (2024) — Orange County Insiders | Tips for locals & visitors
Directions To The Closest Auto Parts Store
Miami Vice turns 40: A look back at the iconic series
COVID-19/Coronavirus Assistance Programs | FindHelp.org
Denise Monello Obituary
Peace Sign Drawing Reference
Academic Notice and Subject to Dismissal
Stosh's Kolaches Photos
A rough Sunday for some of the NFL's best teams in 2023 led to the three biggest upsets: Analysis
Shiftselect Carolinas
Game Akin To Bingo Nyt
Bob Wright Yukon Accident
Latest Posts
Article information

Author: Rev. Leonie Wyman

Last Updated:

Views: 6113

Rating: 4.9 / 5 (79 voted)

Reviews: 86% of readers found this page helpful

Author information

Name: Rev. Leonie Wyman

Birthday: 1993-07-01

Address: Suite 763 6272 Lang Bypass, New Xochitlport, VT 72704-3308

Phone: +22014484519944

Job: Banking Officer

Hobby: Sailing, Gaming, Basketball, Calligraphy, Mycology, Astronomy, Juggling

Introduction: My name is Rev. Leonie Wyman, I am a colorful, tasty, splendid, fair, witty, gorgeous, splendid person who loves writing and wants to share my knowledge and understanding with you.