| @@ 108-116 (lines=9) @@ | ||
| 105 | * |
|
| 106 | * @return array |
|
| 107 | */ |
|
| 108 | public function getCreateUsingTokenData($countryCode = Country::TH) |
|
| 109 | { |
|
| 110 | $data = $this->getCreateData($countryCode); |
|
| 111 | $data['card'] = $this->cardToken; |
|
| 112 | ||
| 113 | unset($data['customer']); |
|
| 114 | ||
| 115 | return $data; |
|
| 116 | } |
|
| 117 | ||
| 118 | /** |
|
| 119 | * @param string $countryCode |
|
| @@ 123-131 (lines=9) @@ | ||
| 120 | * |
|
| 121 | * @return array |
|
| 122 | */ |
|
| 123 | public function getCreateUsingSourceData($countryCode = Country::TH) |
|
| 124 | { |
|
| 125 | $data = $this->getCreateData($countryCode); |
|
| 126 | $data['source'] = $this->source->id; |
|
| 127 | ||
| 128 | unset($data['card'], $data['customer']); |
|
| 129 | ||
| 130 | return $data; |
|
| 131 | } |
|
| 132 | ||
| 133 | /** |
|
| 134 | * @return array |
|