Fixes for tests
This commit is contained in:
parent
e7f08690b5
commit
b7b5b85b89
|
|
@ -225,8 +225,10 @@ class AuthorizeCreditCard implements LivewireMethodInterface
|
|||
$payment_record['gateway_type_id'] = GatewayType::CREDIT_CARD;
|
||||
$payment_record['transaction_reference'] = $response->getTransId();
|
||||
|
||||
$fds_review = $response->getResponseCode();
|
||||
|
||||
if(in_array($response->getResponseCode(), [ "4", "253" ])) {
|
||||
$payment_record['private_notes'] = 'InFDSReview';
|
||||
}
|
||||
|
||||
$payment = $this->authorize->createPayment($payment_record);
|
||||
|
||||
return $payment;
|
||||
|
|
|
|||
|
|
@ -61,14 +61,6 @@ class RefundTransaction
|
|||
// Set the transaction's refId
|
||||
$refId = 'ref'.time();
|
||||
|
||||
// $paymentProfile = new PaymentProfileType();
|
||||
// $paymentProfile->setPaymentProfileId($transaction_details->getTransaction()->getProfile()->getCustomerPaymentProfileId());
|
||||
|
||||
// // // set customer profile
|
||||
// $customerProfile = new CustomerProfilePaymentType();
|
||||
// $customerProfile->setCustomerProfileId($transaction_details->getTransaction()->getProfile()->getCustomerProfileId());
|
||||
// $customerProfile->setPaymentProfile($paymentProfile);
|
||||
|
||||
$creditCard = new CreditCardType();
|
||||
$creditCard->setCardNumber($creditCardNumber);
|
||||
$creditCard->setExpirationDate($creditCardExpiry);
|
||||
|
|
|
|||
|
|
@ -157,6 +157,8 @@ class MultiPaymentDeleteTest extends TestCase
|
|||
$this->assertEquals(162, $invoice->client->fresh()->balance);
|
||||
$this->assertEquals(163, $invoice->client->fresh()->paid_to_date);
|
||||
|
||||
sleep(1);
|
||||
|
||||
$data = [
|
||||
'amount' => 162.0,
|
||||
'client_id' => $this->encodePrimaryKey($client->id),
|
||||
|
|
@ -289,6 +291,7 @@ class MultiPaymentDeleteTest extends TestCase
|
|||
],
|
||||
'date' => '2019/12/12',
|
||||
];
|
||||
sleep(1);
|
||||
|
||||
$response = $this->withHeaders([
|
||||
'X-API-SECRET' => config('ninja.api_secret'),
|
||||
|
|
|
|||
Loading…
Reference in New Issue