From 8e3d7309d09dda8693642fa5e181469f1ef8cb41 Mon Sep 17 00:00:00 2001 From: Okan Date: Fri, 14 Jun 2024 22:41:31 +0300 Subject: [PATCH] Added fake authentication code. --- src/Factories/ResponseFactory.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/Factories/ResponseFactory.php b/src/Factories/ResponseFactory.php index 6d7c5a9..1270c99 100644 --- a/src/Factories/ResponseFactory.php +++ b/src/Factories/ResponseFactory.php @@ -12,12 +12,13 @@ class ResponseFactory extends Factory public function definition(): array { return [ - 'index' => 1, - 'invoiceUid' => strtoupper(fake()->sha1()), - 'invoiceMark' => fake()->numerify("900000#########"), + 'index' => 1, + 'invoiceUid' => strtoupper(fake()->sha1()), + 'authenticationCode' => strtoupper(fake()->sha1()), + 'invoiceMark' => fake()->numerify("900000#########"), 'paymentMethodMark' => fake()->numerify("900000#########"), - 'qrUrl' => fake()->url(), - 'statusCode' => 'Success' + 'qrUrl' => fake()->url(), + 'statusCode' => 'Success' ]; }