Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Removed CreateRecurringPaymentsProfile blank template since with the …

…newer API it should go through Express Checkout
  • Loading branch information...
commit b67663c3d2d53dea04e3ab99d95bcfdf95d6c03f 1 parent 4652192
Jason authored

Showing 1 changed file with 0 additions and 115 deletions. Show diff stats Hide diff stats

  1. +0 115 Createrecurringpaymentsprofile.php
115 Createrecurringpaymentsprofile.php
... ... @@ -1,115 +0,0 @@
1   -<?php
2   -namespace PayPal;
3   -/**
4   - *
5   - * @package JasonPayPalSDK
6   - * @version 1.0
7   - * @author Jason Michels
8   - */
9   -
10   -class DoDirectPayment extends Pro{
11   -
12   - public $method = "DoDirectPayment";
13   -
14   - function __construct()
15   - {
16   - parent::__construct();
17   - $this->request["METHOD"] = $this->method;
18   - $this->required = array("VERSION", "IPADDRESS", "CREDITCARDTYPE", "ACCT", "EXPDATE", "CVV2", "FIRSTNAME", "LASTNAME", "STREET", "CITY", "STATE", "ZIP", "COUNTRYCODE", "AMT",);
19   - }
20   -
21   -// ---------- Required Parameters ----------------------------------------------------------------------- //
22   -
23   - public function setIP($ip)
24   - {
25   - $this->request["IPADDRESS"] = $ip;
26   - return $this;
27   - }
28   -
29   - public function setCreditCard($credit)
30   - {
31   - $this->request["CREDITCARDTYPE"] = $credit["creditcardtype"];
32   - $this->request["ACCT"] = $credit["acct"];
33   - $this->request["EXPDATE"] = $credit["expdate"];
34   - $this->request["CVV2"] = $credit["cvv2"];
35   - return $this;
36   - }
37   -
38   - public function setName($name) //Payer information fields. Email is not required
39   - {
40   - $this->request["FIRSTNAME"] = $name["first"];
41   - $this->request["LASTNAME"] = $name["last"];
42   - if(isset($name["email"])){ $this->request["EMAIL"] = $name["email"]; }
43   - return $this;
44   - }
45   -
46   - public function setAddress($address)
47   - {
48   - $this->request["STREET"] = $address["street"];
49   - if(isset($address["street2"])){ $this->request["STREET2"] = $address["street2"]; }
50   - $this->request["CITY"] = $address["city"];
51   - $this->request["STATE"] = $address["state"];
52   - $this->request["ZIP"] = $address["zip"];
53   - $this->request["COUNTRYCODE"] = $address["countrycode"];
54   - if(isset($address["shiptophonenum"])){ $this->request["SHIPTOPHONENUM"] = $address["shiptophonenum"]; }
55   - return $this;
56   - }
57   -
58   - public function setAmt($amt)
59   - {
60   - $this->request["AMT"] = $amt;
61   - return $this;
62   - }
63   -
64   -// ---------- Optional Parameters ----------------------------------------------------------------------- //
65   - public function setPaymentAction($paymentaction = 'Sale')
66   - {
67   - $this->request["PAYMENTACTION"] = $paymentaction;
68   - return $this;
69   - }
70   -
71   - public function setReturnFMFDetails($fmfdetails)
72   - {
73   - $this->request["RETURNFMFDETAILS"] = $fmfdetails;
74   - return $this;
75   - }
76   -
77   - public function setCurrencyCode($currency)
78   - {
79   - $this->request["CURRENCYCODE"] = $currency;
80   - return $this;
81   - }
82   -
83   - public function setTaxAmt($tax)
84   - {
85   - $this->request["TAXAMT"] = $tax;
86   - return $this;
87   - }
88   -
89   - public function setDesc($desc)
90   - {
91   - $this->request["DESC"] = $desc;
92   - return $this;
93   - }
94   -
95   - public function setCustom($custom)
96   - {
97   - $this->request["CUSTOM"] = $custom;
98   - return $this;
99   - }
100   -
101   - public function setInvNum($invnum)
102   - {
103   - $this->request["INVNUM"] = $invnum;
104   - return $this;
105   - }
106   -
107   - public function setNotifyURL($notifyurl)
108   - {
109   - $this->request["NOTIFYURL"] = $notifyurl;
110   - return $this;
111   - }
112   -
113   -}
114   -
115   -/* End of DoDirectPayment.php class */

0 comments on commit b67663c

Please sign in to comment.
Something went wrong with that request. Please try again.