<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://helpdesk.nuvei.com/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://helpdesk.nuvei.com/feed.php">
        <title>Documentation developer:sample_codes</title>
        <description></description>
        <link>https://helpdesk.nuvei.com/</link>
        <image rdf:resource="https://helpdesk.nuvei.com/lib/tpl/dokuwiki/images/favicon.ico" />
       <dc:date>2026-04-28T11:13:18-0400</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://helpdesk.nuvei.com/doku.php?id=developer:sample_codes:java.xml&amp;rev=1543850770&amp;do=diff"/>
                <rdf:li rdf:resource="https://helpdesk.nuvei.com/doku.php?id=developer:sample_codes:net_hosted_payments&amp;rev=1623261055&amp;do=diff"/>
                <rdf:li rdf:resource="https://helpdesk.nuvei.com/doku.php?id=developer:sample_codes:net_hosted_secure_cards_amazon_solution&amp;rev=1623261029&amp;do=diff"/>
                <rdf:li rdf:resource="https://helpdesk.nuvei.com/doku.php?id=developer:sample_codes:net_xml_payments&amp;rev=1623261167&amp;do=diff"/>
                <rdf:li rdf:resource="https://helpdesk.nuvei.com/doku.php?id=developer:sample_codes:net_xml_secure_cards&amp;rev=1623261229&amp;do=diff"/>
                <rdf:li rdf:resource="https://helpdesk.nuvei.com/doku.php?id=developer:sample_codes:net_xml_subscriptions&amp;rev=1623261273&amp;do=diff"/>
                <rdf:li rdf:resource="https://helpdesk.nuvei.com/doku.php?id=developer:sample_codes:php_hosted_payment_with_secure_card_storage&amp;rev=1543850770&amp;do=diff"/>
                <rdf:li rdf:resource="https://helpdesk.nuvei.com/doku.php?id=developer:sample_codes:php_hosted_payments&amp;rev=1543850770&amp;do=diff"/>
                <rdf:li rdf:resource="https://helpdesk.nuvei.com/doku.php?id=developer:sample_codes:php_hosted_secure_card_amazon_solution&amp;rev=1543850770&amp;do=diff"/>
                <rdf:li rdf:resource="https://helpdesk.nuvei.com/doku.php?id=developer:sample_codes:php_hosted_secure_cards&amp;rev=1558456562&amp;do=diff"/>
                <rdf:li rdf:resource="https://helpdesk.nuvei.com/doku.php?id=developer:sample_codes:php_hosted_subscriptions&amp;rev=1543850770&amp;do=diff"/>
                <rdf:li rdf:resource="https://helpdesk.nuvei.com/doku.php?id=developer:sample_codes:php_xml_payments&amp;rev=1631212339&amp;do=diff"/>
                <rdf:li rdf:resource="https://helpdesk.nuvei.com/doku.php?id=developer:sample_codes:php_xml_payments_with_3d_secure&amp;rev=1543850770&amp;do=diff"/>
                <rdf:li rdf:resource="https://helpdesk.nuvei.com/doku.php?id=developer:sample_codes:php_xml_secure_cards&amp;rev=1543850770&amp;do=diff"/>
                <rdf:li rdf:resource="https://helpdesk.nuvei.com/doku.php?id=developer:sample_codes:php_xml_subscriptions&amp;rev=1543850770&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://helpdesk.nuvei.com/lib/tpl/dokuwiki/images/favicon.ico">
        <title>Documentation</title>
        <link>https://helpdesk.nuvei.com/</link>
        <url>https://helpdesk.nuvei.com/lib/tpl/dokuwiki/images/favicon.ico</url>
    </image>
    <item rdf:about="https://helpdesk.nuvei.com/doku.php?id=developer:sample_codes:java.xml&amp;rev=1543850770&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2018-12-03T10:26:10-0400</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>developer:sample_codes:java.xml</title>
        <link>https://helpdesk.nuvei.com/doku.php?id=developer:sample_codes:java.xml&amp;rev=1543850770&amp;do=diff</link>
        <description>Java XML

We don't currently have sample Java codes for our XML integration, and the reason for this is that most Java developers we've dealt with find it easier to use JAXB to auto-generate the methods using our live XSD file here: &lt;https://payments.worldnettps.com/merchant/gateway.xsd&gt;.

If you require more information, please contact Support Team.</description>
    </item>
    <item rdf:about="https://helpdesk.nuvei.com/doku.php?id=developer:sample_codes:net_hosted_payments&amp;rev=1623261055&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2021-06-09T13:50:55-0400</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>developer:sample_codes:net_hosted_payments</title>
        <link>https://helpdesk.nuvei.com/doku.php?id=developer:sample_codes:net_hosted_payments&amp;rev=1623261055&amp;do=diff</link>
        <description>.NET Hosted Payment

You can find below a high and a low level workflow diagram of the required integration. 

Full documentation is available in API Specification. You should also use our Sandbox test accounts Sandbox testing to test against.

NOTE:

	*    - Supported on .NET Framework 4.5</description>
    </item>
    <item rdf:about="https://helpdesk.nuvei.com/doku.php?id=developer:sample_codes:net_hosted_secure_cards_amazon_solution&amp;rev=1623261029&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2021-06-09T13:50:29-0400</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>developer:sample_codes:net_hosted_secure_cards_amazon_solution</title>
        <link>https://helpdesk.nuvei.com/doku.php?id=developer:sample_codes:net_hosted_secure_cards_amazon_solution&amp;rev=1623261029&amp;do=diff</link>
        <description>.NET Hosted Secure Card Amazon Solution

This solution requires our Card Storage solution called SecureCard. It's designed so that the checkout is like the Amazon checkout, in that the cardholder must register a card for their account and then they can use, update or delete the card info in their account settings. The integration is quite complex though, as there is a lot of functionality.</description>
    </item>
    <item rdf:about="https://helpdesk.nuvei.com/doku.php?id=developer:sample_codes:net_xml_payments&amp;rev=1623261167&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2021-06-09T13:52:47-0400</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>developer:sample_codes:net_xml_payments</title>
        <link>https://helpdesk.nuvei.com/doku.php?id=developer:sample_codes:net_xml_payments&amp;rev=1623261167&amp;do=diff</link>
        <description>.NET XML Payments

NOTE:

	*    - Supported on .NET Framework 4.5 
		*    - .NET Core is not supported

The sample code below requires the [.NET XML API].




----------

Authorisation:



using System;
using System.Globalization;
using System.Security.Cryptography;
using System.Collections.Generic;
using System.Text;
using NuveiClient;

namespace ApiTest
{
    class AuthorisationSample
    {
        static void Main (string[] args)
        {
	    String gateway = &quot;nuvei&quot;;        // Gateway that…</description>
    </item>
    <item rdf:about="https://helpdesk.nuvei.com/doku.php?id=developer:sample_codes:net_xml_secure_cards&amp;rev=1623261229&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2021-06-09T13:53:49-0400</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>developer:sample_codes:net_xml_secure_cards</title>
        <link>https://helpdesk.nuvei.com/doku.php?id=developer:sample_codes:net_xml_secure_cards&amp;rev=1623261229&amp;do=diff</link>
        <description>.NET XML Secure Cards

NOTE:

	*    - Supported on .NET Framework 4.5 
		*    - .NET Core is not supported

The sample code below requires the [.NET XML API].




----------

SecureCard registration:



using System;
using System.Security.Cryptography;
using System.Collections.Generic;
using System.Text;
using NuveiClient;

namespace ApiTest
{
    class SecureCardRegistrationSample
    {
        static void Main (string[] args)
        {
			String gateway = &quot;nuvei&quot;;       // Gateway that will pr…</description>
    </item>
    <item rdf:about="https://helpdesk.nuvei.com/doku.php?id=developer:sample_codes:net_xml_subscriptions&amp;rev=1623261273&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2021-06-09T13:54:33-0400</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>developer:sample_codes:net_xml_subscriptions</title>
        <link>https://helpdesk.nuvei.com/doku.php?id=developer:sample_codes:net_xml_subscriptions&amp;rev=1623261273&amp;do=diff</link>
        <description>.NET XML Subscriptions

NOTE:

	*    - Supported on .NET Framework 4.5 
		*    - .NET Core is not supported

The sample code below requires the [.NET XML API].




----------

Subscription registration:



using System;
using System.Security.Cryptography;
using System.Collections.Generic;
using System.Text;
using NuveiClient;

namespace ApiTest
{
    class  SubscriptionRegistrationSample
    {
        static void Main (string[] args)
        {
			String gateway = &quot;nuvei&quot;;        // Gateway that …</description>
    </item>
    <item rdf:about="https://helpdesk.nuvei.com/doku.php?id=developer:sample_codes:php_hosted_payment_with_secure_card_storage&amp;rev=1543850770&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2018-12-03T10:26:10-0400</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>developer:sample_codes:php_hosted_payment_with_secure_card_storage</title>
        <link>https://helpdesk.nuvei.com/doku.php?id=developer:sample_codes:php_hosted_payment_with_secure_card_storage&amp;rev=1543850770&amp;do=diff</link>
        <description>PHP HOSTED PAYMENTS WITH SECURECARD STORAGE

Settings file (nuvei_account.inc):



&lt;?php

# These values are used to identify and validate the account that you are using. They are mandatory.
$gateway = '';			# This is the Nuvei payments gateway that you should use, assigned to the site by Nuvei.
$terminalId = '';		# This is the Terminal ID assigned to the site by Nuvei.
$currency = '';			# This is the 3 digit ISO currency code for the above Terminal ID.
$secret = '';			# This shared secret is us…</description>
    </item>
    <item rdf:about="https://helpdesk.nuvei.com/doku.php?id=developer:sample_codes:php_hosted_payments&amp;rev=1543850770&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2018-12-03T10:26:10-0400</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>developer:sample_codes:php_hosted_payments</title>
        <link>https://helpdesk.nuvei.com/doku.php?id=developer:sample_codes:php_hosted_payments&amp;rev=1543850770&amp;do=diff</link>
        <description>PHP Hosted Payments

Settings file (nuvei_account.inc):



&lt;?php

# These values are used to identify and validate the account that you are using. They are mandatory.
$gateway = '';			# This is the Nuvei payments gateway that you should use, assigned to the site by Nuvei.
$terminalId = '';		# This is the Terminal ID assigned to the site by Nuvei.
$currency = '';			# This is the 3 digit ISO currency code for the above Terminal ID.
$secret = '';			# This shared secret is used when generating the h…</description>
    </item>
    <item rdf:about="https://helpdesk.nuvei.com/doku.php?id=developer:sample_codes:php_hosted_secure_card_amazon_solution&amp;rev=1543850770&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2018-12-03T10:26:10-0400</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>developer:sample_codes:php_hosted_secure_card_amazon_solution</title>
        <link>https://helpdesk.nuvei.com/doku.php?id=developer:sample_codes:php_hosted_secure_card_amazon_solution&amp;rev=1543850770&amp;do=diff</link>
        <description>PHP Secure Card Amazon Solution

This solution requires our Card Storage solution called SecureCard. It's designed so that the checkout is like the Amazon checkout, in that the cardholder must register a card for their account and then they can use, update or delete the card info in their account settings. The integration is quite complex though, as there is a lot of functionality.</description>
    </item>
    <item rdf:about="https://helpdesk.nuvei.com/doku.php?id=developer:sample_codes:php_hosted_secure_cards&amp;rev=1558456562&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-05-21T12:36:02-0400</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>developer:sample_codes:php_hosted_secure_cards</title>
        <link>https://helpdesk.nuvei.com/doku.php?id=developer:sample_codes:php_hosted_secure_cards&amp;rev=1558456562&amp;do=diff</link>
        <description>PHP Hosted SecureCards

Settings file (nuvei_account.inc):



&lt;?php

# These values are used to identify and validate the account that you are using. They are mandatory.
$gateway = '';			# This is the Nuvei payments gateway that you should use, assigned to the site by Nuvei.
$terminalId = '';		# This is the Terminal ID assigned to the site by Nuvei.
$currency = '';			# This is the 3 digit ISO currency code for the above Terminal ID.
$secret = '';			# This shared secret is used when generating th…</description>
    </item>
    <item rdf:about="https://helpdesk.nuvei.com/doku.php?id=developer:sample_codes:php_hosted_subscriptions&amp;rev=1543850770&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2018-12-03T10:26:10-0400</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>developer:sample_codes:php_hosted_subscriptions</title>
        <link>https://helpdesk.nuvei.com/doku.php?id=developer:sample_codes:php_hosted_subscriptions&amp;rev=1543850770&amp;do=diff</link>
        <description>PHP Hosted Subscriptions

Settings file (nuvei_account.inc):



&lt;?php

# These values are used to identify and validate the account that you are using. They are mandatory.
$gateway = '';			# This is the Nuvei payments gateway that you should use, assigned to the site by Nuvei.
$terminalId = '';		# This is the Terminal ID assigned to the site by Nuvei.
$currency = '';			# This is the 3 digit ISO currency code for the above Terminal ID.
$secret = '';			# This shared secret is used when generating …</description>
    </item>
    <item rdf:about="https://helpdesk.nuvei.com/doku.php?id=developer:sample_codes:php_xml_payments&amp;rev=1631212339&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2021-09-09T14:32:19-0400</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>developer:sample_codes:php_xml_payments</title>
        <link>https://helpdesk.nuvei.com/doku.php?id=developer:sample_codes:php_xml_payments&amp;rev=1631212339&amp;do=diff</link>
        <description>PHP XML Payments

Below you can find sample code for Payments page in PHP. You should also use this Testing Guide, which also contains test card details.

The sample code below requires the [PHP XML API].

Settings file (nuvei_account.inc):



&lt;?php

# These values are used to identify and validate the account that you are using. They are mandatory.
$gateway = '';			# This is the Nuvei payments gateway that you should use, assigned to the site by Nuvei.
$terminalId = '';		# This is the Terminal …</description>
    </item>
    <item rdf:about="https://helpdesk.nuvei.com/doku.php?id=developer:sample_codes:php_xml_payments_with_3d_secure&amp;rev=1543850770&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2018-12-03T10:26:10-0400</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>developer:sample_codes:php_xml_payments_with_3d_secure</title>
        <link>https://helpdesk.nuvei.com/doku.php?id=developer:sample_codes:php_xml_payments_with_3d_secure&amp;rev=1543850770&amp;do=diff</link>
        <description>PHP XML Payments with 3D Secure

In this section, you can find sample code for the 3D Secure redirect before the payment. 

Once you receive the response to the “MPI Receipt URL” you will have an MPIREF parameter. 
You should then process a payment and include that parameter. The sample code for the</description>
    </item>
    <item rdf:about="https://helpdesk.nuvei.com/doku.php?id=developer:sample_codes:php_xml_secure_cards&amp;rev=1543850770&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2018-12-03T10:26:10-0400</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>developer:sample_codes:php_xml_secure_cards</title>
        <link>https://helpdesk.nuvei.com/doku.php?id=developer:sample_codes:php_xml_secure_cards&amp;rev=1543850770&amp;do=diff</link>
        <description>PHP XML Secure Cards

The sample code below required the [PHP XML API].


Settings file (nuvei_account.inc):



&lt;?php

# These values are used to identify and validate the account that you are using. They are mandatory.
$gateway = '';			# This is the Nuvei payments gateway that you should use, assigned to the site by Nuvei.
$terminalId = '';		# This is the Terminal ID assigned to the site by Nuvei.
$currency = '';			# This is the 3 digit ISO currency code for the above Terminal ID.
$secret = '';…</description>
    </item>
    <item rdf:about="https://helpdesk.nuvei.com/doku.php?id=developer:sample_codes:php_xml_subscriptions&amp;rev=1543850770&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2018-12-03T10:26:10-0400</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>developer:sample_codes:php_xml_subscriptions</title>
        <link>https://helpdesk.nuvei.com/doku.php?id=developer:sample_codes:php_xml_subscriptions&amp;rev=1543850770&amp;do=diff</link>
        <description>PHP XML Subscriptions

The sample code below requires the [PHP XML API].


Settings file (nuvei_account.inc):



&lt;?php
 
# These values are used to identify and validate the account that you are using. They are mandatory.
$gateway = '';			# This is the Nuvei payments gateway that you should use, assigned to the site by Nuvei.
$terminalId = '';			# This is the Terminal ID assigned to the site by Nuvei.
$currency = '';				# This is the 3 digit ISO currency code for the above Terminal ID.
$secret =…</description>
    </item>
</rdf:RDF>
