From 59e0a67afb00def8575df41075904e784e3d0925 Mon Sep 17 00:00:00 2001 From: Richard Marmorstein Date: Fri, 11 Feb 2022 16:46:59 -0800 Subject: [PATCH] Add test --- tests/Stripe/GeneratedExamplesTest.php | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/tests/Stripe/GeneratedExamplesTest.php b/tests/Stripe/GeneratedExamplesTest.php index 49296f7c8..089cf21fd 100644 --- a/tests/Stripe/GeneratedExamplesTest.php +++ b/tests/Stripe/GeneratedExamplesTest.php @@ -2696,4 +2696,30 @@ public function testRetrievePaymentLink() $result = $this->client->paymentLinks->retrieve('pl_xyz', []); static::assertInstanceOf(\Stripe\PaymentLink::class, $result); } + + public function testVerifyMicrodepositsPaymentIntent() + { + $this->expectsRequest( + 'post', + '/v1/payment_intents/pi_xxxxxxxxxxxxx/verify_microdeposits' + ); + $result = $this->client->paymentIntents->verifyMicrodeposits( + 'pi_xxxxxxxxxxxxx', + [] + ); + static::assertInstanceOf(\Stripe\PaymentIntent::class, $result); + } + + public function testVerifyMicrodepositsSetupIntent() + { + $this->expectsRequest( + 'post', + '/v1/setup_intents/seti_xxxxxxxxxxxxx/verify_microdeposits' + ); + $result = $this->client->setupIntents->verifyMicrodeposits( + 'seti_xxxxxxxxxxxxx', + [] + ); + static::assertInstanceOf(\Stripe\SetupIntent::class, $result); + } }