This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
define('KEY', 'YOUR APPLICATION ID'); | |
define('SECRET', 'YOUR APPLICATION SECRET'); | |
define('CALLBACK_URL', 'YOUR CALLBACK PATH - TO COMPLETE.PHP'); | |
define('AUTHORIZATION_ENDPOINT', 'https://identity.x.com/xidentity/resources/authorize'); | |
define('ACCESS_TOKEN_ENDPOINT', 'https://identity.x.com/xidentity/oauthtokenservice'); | |
define('PROFILE_ENDPOINT', 'https://identity.x.com/xidentity/resources/profile/me'); | |
/*************************************************************************** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<default> | |
<partner_channel> | |
<capability> | |
<registration> | |
<target_capability_name>Capability</target_capability_name> | |
<store_endpoint_url/> | |
<request_url><![CDATA[https://devportal.x.com/merchant_onboarding/]]></request_url> | |
<is_registered>1</is_registered> | |
<legal_agreement_url><![CDATA[http://www.magentocommerce.com/company/terms/]]></legal_agreement_url> | |
<store-front-platform><![CDATA[Magento ver. CE 1.5.1.0]]></store-front-platform> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HTTP/1.1 200 OK | |
Content-Type: application/json | |
Cache-Control: no-store | |
Pragma: no-cache | |
{ "access_token": "ElAV32hkKGlMT4H86HJK94f54HKDLZdf", "token_type": "Bearer", "refresh_token": | |
"ExLOxBtZp8JJHDHD9495HDHHDHFHFJHF", "expires_in": 900, "id_token": | |
"eyJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC9zZXJ2ZXIuZXhhbXBsZS5jb20iLCJ1c2VyX2lkIjoiMjQ4Mjg5NzYxMDAxIiwiYXVkIjoiczZCaGRSa3F0MyIsIm5vbmNlIjoibi0wUzZftKVpFuc1pGaVsyZsOtkT32E4c6MDHeCvIDlR5ESC0ct8BLvGJDB5954MjCR4_X2GAEHonKw4NF8wTmUFvhslYXmjRNFs21Byjn3jNb7lSa3MBfVsw" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function getRegistrationRequest() | |
{ | |
$request = new Varien_Object(); | |
/** @var $fabricAuth Xcom_Xfabric_Model_Authorization */ | |
$fabricAuth = Mage::helper('xcom_xfabric')->getAuthModel(); | |
$postData = array(); | |
$postData['target_capability_name'] = 'Your Extension Name Here'; | |
$postData['legal_agreement_url'] = self::YOUR_LICENSE_URI; | |
$postData['store_instance_name'] = (string)Mage::app()->getConfig()->getNode( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// | |
// This module is part of the Ponger capability. The module: | |
// -- handles the Ping message of the PingCapability transaction of the PingPong workflow | |
// -- sends the Pong message of the PingCapability transaction of the PingPong workflow in response | |
// | |
// Copy to your <magento-install-root> directory | |
include_once 'lib/avro.php'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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=DoExpressCheckoutPayment | |
&VERSION=89 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Request | |
------- | |
Endpoint URL: https://api-3t.sandbox.paypal.com/nvp | |
HTTP method: POST | |
POST data: | |
USER=insert_merchant_user_name_here | |
&PWD=insert_merchant_password_here | |
&SIGNATURE=insert_merchant_signature_value_here | |
&METHOD=DoCapture | |
&VERSION=86 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Request | |
------- | |
Endpoint URL: https://api-3t.sandbox.paypal.com/nvp | |
HTTP method: POST | |
POST data: | |
USER=insert_merchant_user_name_here | |
&PWD=insert_merchant_password_here | |
&SIGNATURE=insert_merchant_signature_value_here | |
&METHOD=CreateRecurringPaymentsProfile | |
&VERSION=86 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HTTP Headers | |
------------ | |
-H "X-PAYPAL-SECURITY-USERID: insert_developer_user_name" | |
-H "X-PAYPAL-SECURITY-PASSWORD: insert_developer_password" | |
-H "X-PAYPAL-SECURITY-SIGNATURE: insert_developer_signature" | |
-H "X-PAYPAL-REQUEST-DATA-FORMAT: NV" | |
-H "X-PAYPAL-RESPONSE-DATA-FORMAT: NV" | |
-H "X-PAYPAL-APPLICATION-ID: APP-80W284485P519543T" #Standard Sandbox App ID | |
Endpoint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HTTP Headers | |
------------ | |
-H "X-PAYPAL-SECURITY-USERID: insert_developer_user_name_here" | |
-H "X-PAYPAL-SECURITY-PASSWORD: insert_developer_password_here" | |
-H "X-PAYPAL-SECURITY-SIGNATURE: insert_developer_signature_here" | |
-H "X-PAYPAL-REQUEST-DATA-FORMAT: NV" | |
-H "X-PAYPAL-RESPONSE-DATA-FORMAT: NV" | |
-H "X-PAYPAL-APPLICATION-ID: APP-80W284485P519543T" #Standard Sandbox App ID | |
Endpoint |