mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Process payments with eWay
This commit is contained in:
parent
1c71824810
commit
46f14392f5
@ -178,9 +178,37 @@ class CreditCard
|
||||
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
array:9 [▼
|
||||
"_token" => "RpkUNg0gHYfzLKPCJG3EtmshGiwDUeytRG53b1Or"
|
||||
"gateway_response" => null
|
||||
"store_card" => true
|
||||
"payment_hash" => "1wC7J7Jo1jagV5oBaWSxz7b2lSLsvVMp"
|
||||
"company_gateway_id" => "6"
|
||||
"payment_method_id" => "1"
|
||||
"token" => null
|
||||
"securefieldcode" => "F9802rbHYa0St-w3QpBXvNaiNFMNhmY7OmZimH-HROUzS1K0niXOlqXUzugz4mnTqJVqK"
|
||||
"q" => "/client/payments/process/response"
|
||||
]
|
||||
*/
|
||||
public function paymentResponse($request)
|
||||
{
|
||||
|
||||
dd($request->all());
|
||||
|
||||
$transaction = [
|
||||
'Payment' => [
|
||||
'TotalAmount' => 1000,
|
||||
],
|
||||
'TransactionType' => \Eway\Rapid\Enum\TransactionType::PURCHASE,
|
||||
'SecuredCardData' => '44DD7jYYyRgaQnVibOAsYbbFIYmSXbS6hmTxosAhG6CK1biw=',
|
||||
];
|
||||
|
||||
$response = $client->createTransaction(\Eway\Rapid\Enum\ApiMethod::DIRECT, $transaction);
|
||||
}
|
||||
|
||||
|
||||
private function convertAmountForEway($amount)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user