Skip to content

Commit

Permalink
Card
Browse files Browse the repository at this point in the history
  • Loading branch information
krzGablo committed Jan 5, 2024
1 parent 04108c6 commit 0b598e9
Showing 1 changed file with 6 additions and 33 deletions.
39 changes: 6 additions & 33 deletions Model/ApiFacade/CardTransaction/CardOpen.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,44 +156,17 @@ private function saveCard(string $orderId, bool $saveCard, array $additionalPaym

private function handleDataStructure(): array
{
// return [
// 'amount' => (float)$this->tpayPaymentConfig['amount'],
// 'description' => $this->tpayPaymentConfig['description'],
// 'hiddenDescription' => $this->tpayPaymentConfig['crc'],
// 'payer' => [
// 'email' => $this->tpayPaymentConfig['email'],
// 'name' => $this->tpayPaymentConfig['name'],
// 'phone' => $this->tpayPaymentConfig['phone'],
// 'address' => $this->tpayPaymentConfig['address'],
// 'code' => $this->tpayPaymentConfig['zip'],
// 'city' => $this->tpayPaymentConfig['city'],
// 'country' => $this->tpayPaymentConfig['country'],
// ],
// 'lang' => 'pl',
// 'pay' => [
// 'groupId' => 103,
// ],
// 'callbacks' => [
// 'notification' => [
// "url" => $this->tpayPaymentConfig['result_url'],
// ],
// 'payerUrls' => [
// "success" => $this->tpayPaymentConfig['return_url'],
// "error" => $this->tpayPaymentConfig['return_error_url']
// ],
// ]
// ];
return [
'amount' => (float)$this->tpayPaymentConfig['amount'],
'description' => $this->tpayPaymentConfig['description'],
'hiddenDescription' => $this->tpayPaymentConfig['crc'],
'payer' => [
'email' => 'ktpay@inny.com',
'name' => 'Krzysztof Inny',
'phone' => '695065220',
'address' => 'Barwinek 7a',
'code' => '38-454',
'city' => 'Tylawa',
'email' => $this->tpayPaymentConfig['email'],
'name' => $this->tpayPaymentConfig['name'],
'phone' => $this->tpayPaymentConfig['phone'],
'address' => $this->tpayPaymentConfig['address'],
'code' => $this->tpayPaymentConfig['zip'],
'city' => $this->tpayPaymentConfig['city'],
'country' => $this->tpayPaymentConfig['country'],
],
'lang' => 'pl',
Expand Down

0 comments on commit 0b598e9

Please sign in to comment.