Skip to content

Commit

Permalink
Merge pull request #19 from JonPurvis/add-issuing-token-id
Browse files Browse the repository at this point in the history
add issuing tokens id
  • Loading branch information
JonPurvis authored Oct 20, 2023
2 parents 78ae02c + 6b5fae2 commit 93489b7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ the names of resources _should_ match what's in this package.
| [Cardholders](https://stripe.com/docs/api/issuing/cardholders) | `stripeIssuingCardholderId()` | `ich_EyqQ6EcYkhzgyrGEQSCY68EB` |
| [Cards](https://stripe.com/docs/api/issuing/cards) | `stripeIssuingCardId()` | `ic_IsXAmEVzInXUPtq4uttDZ2g2` |
| [Disputes](https://stripe.com/docs/api/issuing/disputes) | `stripeIssuingDisputeId()` | `idp_lXR4WsU6fhdpErzWVNOr24Ux` |
| [Tokens](https://stripe.com/docs/api/issuing/tokens) | `stripeIssuingTokenId()` | `ipi_FqGAHy3JUvUsjWdqyaViRFm2` |
| [Transactions](https://stripe.com/docs/api/issuing/transactions) | `stripeIssuingTransactionId()` | `ipi_FqGAHy3JUvUsjWdqyaViRFm2` |

### Terminal
Expand Down
5 changes: 5 additions & 0 deletions src/Stripe.php
Original file line number Diff line number Diff line change
Expand Up @@ -490,4 +490,9 @@ public function stripeFinancialConnectionAccountInferredBalanceId(): string
{
return 'fcinba_' . $this->generateRandomString();
}

public function stripeIssuingTokenId(): string
{
return 'intok_' . $this->generateRandomString();
}
}
4 changes: 4 additions & 0 deletions tests/StripeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -382,4 +382,8 @@

it('generates a financial connection account inferred balance id', function () {
expect($this->fake->stripeFinancialConnectionAccountInferredBalanceId())->toStartWith('fcinba_')->toHaveLength(31)->toBeString();
})->repeat(2);

it('generates a issuing token id', function () {
expect($this->fake->stripeIssuingTokenId())->toStartWith('intok_')->toHaveLength(30)->toBeString();
})->repeat(2);

0 comments on commit 93489b7

Please sign in to comment.