Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions doc/create-payment.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,3 +161,16 @@ $tp-spacing: 0.75rem;

If the buttons don’t render correctly (e.g., layout breaks or styles differ from the preview images), it may be caused by conflicts between your CSS and ThePay’s default styles.
In such cases, we recommend disabling ThePay’s CSS entirely and implementing your own styling.

#### Full customization of Buttons

If the default payment buttons don’t fit your design or layout needs, you can fully customize them using the pay URLs for each available payment method.

Use the method `getPaymentUrlsForPayment`, which returns a list of payment methods along with direct URLs for completing the payment.

```php
/** @var \ThePay\ApiClient\TheClient $thePayClient */
$paymentMethods = $thePayClient->getPaymentUrlsForPayment('uid123', 'cs');
```

Each item in the returned array includes information about the payment method (e.g., name, logo, tags) and its corresponding payment URL.
22 changes: 0 additions & 22 deletions doc/get-pay-urls-for-existing-payment.md

This file was deleted.

2 changes: 0 additions & 2 deletions doc/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@

[Saving authorization](saving-authorization.md)

[Get pay URLs for existing payments](get-pay-urls-for-existing-payment.md)

[Generating a confirmation PDF for paid payment](generate-payment-confirmation.md)

## Methods
Expand Down