From 567e68f0bb3be604f4c06a7b248d027227e5d1e7 Mon Sep 17 00:00:00 2001 From: bilton30 <42880447+bilton30@users.noreply.github.com> Date: Sat, 4 Nov 2023 15:26:25 +0200 Subject: [PATCH] Update README.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Correção de "Missing Proprieties" na requisição de reversão de transação. --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 20ee942..e564929 100644 --- a/README.md +++ b/README.md @@ -160,15 +160,17 @@ use Paymentsds\MPesa\Client; $client = new Client([ 'apiKey' => '', // API Key 'publicKey' => '', // Public Key - 'serviceProviderCode' => '', // Service Provider Code - 'initiatorIdentifier' => '', // Initiator Identifier - 'securityIdentifier' => '' // Security Credential + + ]); $paymentData = [ + 'to'=> '', // Service Provider Code 'reference' => '11114', // Third Party Reference 'transaction' => 'T12344CC', // Transaction Reference 'amount' => '10' // Amount + 'initiatorIdentifier' => "", // Initiator Identifier + 'securityIdentifier' => "" // Security Credential ]; $result = $client->revert($paymentData);