@@ 112-125 (lines=14) @@ | ||
109 | return $brands; |
|
110 | } |
|
111 | ||
112 | public function getBillingFields() { |
|
113 | $fields = array( |
|
114 | "billingAddress1" => TextField::create('billingAddress1', _t("PaymentForm.BILLINGADDRESS1", "")), |
|
115 | "billingAddress2" => TextField::create('billingAddress2', _t("PaymentForm.BILLINGADDRESS2", "")), |
|
116 | "city" => TextField::create('billingCity', _t("PaymentForm.BILLINGCITY", "City")), |
|
117 | "postcode" => TextField::create('billingPostcode', _t("PaymentForm.BILLINGPOSTCODE", "Postcode")), |
|
118 | "state" => TextField::create('billingState', _t("PaymentForm.BILLINGSTATE", "State")), |
|
119 | "country" => TextField::create('billingCountry', _t("PaymentForm.BILLINGCOUNTRY", "Country")), |
|
120 | "phone" => PhoneNumberField::create('billingPhone', _t("PaymentForm.BILLINGPHONE", "Phone")) |
|
121 | ); |
|
122 | $this->cullForGateway($fields); |
|
123 | ||
124 | return FieldList::create($fields); |
|
125 | } |
|
126 | ||
127 | public function getShippingFields() { |
|
128 | $fields = array( |
|
@@ 127-144 (lines=18) @@ | ||
124 | return FieldList::create($fields); |
|
125 | } |
|
126 | ||
127 | public function getShippingFields() { |
|
128 | $fields = array( |
|
129 | "shippingAddress1" => TextField::create( |
|
130 | 'shippingAddress1', _t("PaymentForm.SHIPPINGADDRESS1", "Shipping Address") |
|
131 | ), |
|
132 | "shippingAddress2" => TextField::create( |
|
133 | 'shippingAddress2', _t("PaymentForm.SHIPPINGADDRESS2", "Shipping Address 2") |
|
134 | ), |
|
135 | "city" => TextField::create('shippingCity', _t("PaymentForm.SHIPPINGCITY", "Shipping City")), |
|
136 | "postcode" => TextField::create('shippingPostcode', _t("PaymentForm.SHIPPINGPOSTCODE", "Shipping Postcode")), |
|
137 | "state" => TextField::create('shippingState', _t("PaymentForm.SHIPPINGSTATE", "Shipping State")), |
|
138 | "country" => TextField::create('shippingCountry', _t("PaymentForm.SHIPPINGCOUNTRY", "Shipping Country")), |
|
139 | "phone" => PhoneNumberField::create('shippingPhone', _t("PaymentForm.SHIPPINGPHONE", "Shipping Phone")) |
|
140 | ); |
|
141 | $this->cullForGateway($fields); |
|
142 | ||
143 | return FieldList::create($fields); |
|
144 | } |
|
145 | ||
146 | public function getEmailFields() { |
|
147 | $fields = array( |