File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 22
33# SumUp PHP SDK
44
5- [ ![ Stars] ( https://img.shields.io/github/stars/sumup/sumup-php?style=social )] ( https://github.com/sumup/sumup-go/ )
5+ [ ![ Stars] ( https://img.shields.io/github/stars/sumup/sumup-php?style=social )] ( https://github.com/sumup/sumup-php )
66[ ![ Latest Stable Version] ( https://poser.pugx.org/sumup/sumup-php/v/stable.svg )] ( https://packagist.org/packages/sumup/sumup-php )
77[ ![ Total Downloads] ( https://poser.pugx.org/sumup/sumup-php/downloads.svg )] ( https://packagist.org/packages/sumup/sumup-php )
8- [ ![ License] ( https://img.shields.io/github/license/sumup/sumup-go )] ( ./LICENSE )
9- [ ![ Contributor Covenant] ( https://img.shields.io/badge/Contributor%20Covenant-v2.1%20adopted-ff69b4.svg )] ( https://github.com/sumup/sumup-go /tree/main/CODE_OF_CONDUCT.md )
8+ [ ![ License] ( https://img.shields.io/github/license/sumup/sumup-php )] ( ./LICENSE )
9+ [ ![ Contributor Covenant] ( https://img.shields.io/badge/Contributor%20Covenant-v2.1%20adopted-ff69b4.svg )] ( https://github.com/sumup/sumup-php /tree/main/CODE_OF_CONDUCT.md )
1010
1111</div >
1212
@@ -36,14 +36,14 @@ Then create checkouts and use other API endpoints:
3636try {
3737 // SDK automatically uses SUMUP_API_KEY environment variable
3838 $sumup = new \SumUp\SumUp();
39-
39+
4040 $checkout = $sumup->checkouts->create([
4141 'amount' => 10.00,
4242 'currency' => 'EUR',
4343 'checkout_reference' => 'your-checkout-ref',
4444 'merchant_code' => 'YOUR-MERCHANT-CODE',
4545 ]);
46-
46+
4747 $checkoutId = $checkout->id;
4848 // Pass the $checkoutId to the front-end to be processed
4949} catch (\SumUp\Exception\AuthenticationException $e) {
You can’t perform that action at this time.
0 commit comments