\PayPalExpressCheckoutPayment
PayPal Express Checkout Payment
- Author: Jeremy Shipman jeremy [at] burnbright.net
Synopsis
class PayPalExpressCheckoutPayment
extends EcommercePayment
{
- // members
- private static boolean $debug = false;
- private static array $db = ;
- private static string $logo = "ecommerce/images/paymentmethods/paypal.jpg";
- private static array $payment_methods = ;
- private static string $test_API_Endpoint = "https://api-3t.sandbox.paypal.com/nvp";
- private static string $test_PAYPAL_URL = "https://www.sandbox.paypal.com/webscr?cmd=_express-checkout&token=";
- private static string $API_Endpoint = "https://api-3t.paypal.com/nvp";
- private static string $PAYPAL_URL = "https://www.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=";
- private static string $privacy_link = "https://www.paypal.com/us/cgi-bin/webscr?cmd=p/gen/ua/policy_privacy-outside";
- private static boolean $test_mode = true;
- private static $API_UserName;
- private static $API_Password;
- private static $API_Signature;
- private static $sBNCode = NULL;
- private static string $version = '64';
- private static array $custom_settings = ;
- // methods
- public void getCMSFields()
- public void getPaymentFormFields()
- public void getPaymentFormRequirements()
- public void processPayment()
- public void PayPalForm()
- public void populateDefaults()
- protected void getTokenURL()
- public void confirmPayment()
- protected void getPendingReason()
- protected void apiCall()
- protected void deformatNVP()
- protected void getApiEndpoint()
- protected void getPayPalURL()
- protected void addDebugInfo()
Hierarchy
Extends
- EcommercePayment
Tasks
Line | Task |
---|---|
351 | should these be updated like this? |
354 | store this extra info locally? |
Members
private
- $API_Endpoint
- $API_Password
- $API_Signature
- $API_UserName
- $PAYPAL_URL
- $custom_settings
- $db
- $debug
- $logo
- $payment_methods
- $privacy_link
- $sBNCode
- $test_API_Endpoint
- $test_PAYPAL_URL
- $test_mode
- $version
Methods
protected
- addDebugInfo()
- apiCall() — Handles actual communication with API server.
- deformatNVP()
- getApiEndpoint()
- getPayPalURL()
- getPendingReason()
- getTokenURL() — Requests a Token url, based on the provided Name-Value-Pair fields See docs for more detail on these fields: https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_api_nvp_r_SetExpressCheckout
public
- PayPalForm() — depracated
- confirmPayment() — see https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_api_nvp_r_DoExpressCheckoutPayment
- getCMSFields()
- getPaymentFormFields()
- getPaymentFormRequirements()
- populateDefaults()
- processPayment()