Skip to content

Commit d6429b3

Browse files
authored
Updated Transaction::create() parameter name.
Renamed "Create a transaction"'s passed `$transactionId` parameter to `$merchantId` to remain consistent with the method as defined in the source code. To clarify, the `Transaction` class' `create()` method accepts a merchant ID, not a transaction ID.
1 parent f425ad4 commit d6429b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ $privateAppKey = 'your-private-key-goes-here';
9696
'amount' => $amount, //value must be in cents
9797
'currency' => $currency //see available formats https://github.com/paylike/currencies
9898
);
99-
$transaction = \Paylike\Transaction::create( $transactionId, $data );
99+
$transaction = \Paylike\Transaction::create( $merchantId, $data );
100100
// you will now have the transaction data in the $transaction variable.
101101
```
102102

@@ -107,4 +107,4 @@ $privateAppKey = 'your-private-key-goes-here';
107107
```php
108108
$card = \Paylike\Card::fetch( $cardId );
109109
// you will now have the card data in the $card variable.
110-
```
110+
```

0 commit comments

Comments
 (0)