Skip to content

Instantly share code, notes, and snippets.

//sample jsp code
@xcommerce-gists
xcommerce-gists / DoAuthorization
Created October 31, 2012 21:47
How to Create and Process an Order Using Express Checkout.curl
Request
-------
Endpoint URL: https://api-3t.sandbox.paypal.com/nvp
HTTP method: POST
POST data:
USER=merchant_user_name
&PWD=merchant_password
&SIGNATURE=merchant_signature
&METHOD=DoAuthorization
&VERSION=95
@xcommerce-gists
xcommerce-gists / DoCapture
Created October 11, 2012 23:19
How to Authorize and Process a Payment Using Express Checkout.curl
Request
-------
Endpoint URL: https://api-3t.sandbox.paypal.com/nvp
HTTP method: POST
POST data:
USER=merchant_user_name
&PWD=merchant_password
&SIGNATURE=merchant_signature
&METHOD=DoCapture
&VERSION=95
@xcommerce-gists
xcommerce-gists / config.xml
Created October 4, 2012 01:28
Basic config.xml sample 2 (X.commerce merchant onboarding)
<config>
<modules>
<Examplecorp_Simplemoduleexample>
<version>1.0.0</version>
</Examplecorp_Simplemoduleexample>
</modules>
<global>
<xcom_onboarding>
<extensions>
<Namespace_Simplemoduleexample>
@xcommerce-gists
xcommerce-gists / config.xml
Created October 4, 2012 01:26
Basic config.xml sample 1 (X.commerce merchant onboarding)
<config>
<modules>
<Examplecorp_Simplemoduleexample>
<version>1.0.0</version>
</Examplecorp_Simplemoduleexample>
</modules>
<global>
<xcom_onboarding>
<extensions>
<Namespace_Simplemoduleexample>
@xcommerce-gists
xcommerce-gists / masspay.curl
Created October 4, 2012 00:30
MassPay-ht.curl
curl -s --insecure https://api-3t.sandbox.paypal.com/nvp -d
"USER=<Caller_ID>
&PWD=<Caller_Pswd>
&SIGNATURE=<Caller_Sig>
&METHOD=MassPay
&VERSION=93
&RECEIVERTYPE=EmailAddress
&CURRENCYCODE=USD
&EMAILSUBJECT= You have a new payment from TEST
&[email protected]
@xcommerce-gists
xcommerce-gists / config.xml
Created October 3, 2012 16:21
Sample advanced onboarding config.xml for X.commerce
<?xml version="1.0"?>
<!--
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
@xcommerce-gists
xcommerce-gists / sample-template.phtml
Created October 3, 2012 14:32
Sample template for X.commerce onboarding
<?php
/**
* Magento Enterprise Edition
*
* NOTICE OF LICENSE
*
* This source file is subject to the Magento Enterprise Edition License
* that is bundled with this package in the file LICENSE_EE.txt.
* It is also available through the world-wide-web at this URL:
* http://www.magentocommerce.com/license/enterprise-edition
@xcommerce-gists
xcommerce-gists / GetTransactionDetails
Created October 1, 2012 21:01
How to Get Transaction Data Using the Merchant API.curl
Request
-------
Endpoint URL: https://api-3t.sandbox.paypal.com/nvp
HTTP method: POST
POST data:
USER=merchant_user_name
&PWD=merchant_password
&SIGNATURE=merchant_signature
&METHOD=GetTransactionDetails
&TRANSACTIONID=9XJ88717E86951234 #The ID of the transaction to retrieve
@xcommerce-gists
xcommerce-gists / step1.html
Created October 1, 2012 00:29
Step 1 in the x.commerce demo application: HTML
<!-- Displays values used (schema URI, bearer tokens) and includes the message body -->
<div class="modal" id="myModal2" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="display: none;">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button>
<form>
<div id="step1" style="">
<legend>1. Cart creates order</legend>
<h4>Schema URI</h4> <label> {{ @SESSION.cart_uri }}</label>
<h4>Cart Authorization Token </h4>
<label class="carttoken"> {{ @SESSION.cart_token }}</label>