Banners
2 years ago
DataTransferObjects
1 year ago
Exceptions
3 years ago
Migrations
2 years ago
Models
9 months ago
PayPalCheckoutSdk
1 year ago
Repositories
1 year ago
Webhooks
2 years ago
AccountAdminNotices.php
4 years ago
AdminSettingFields.php
7 months ago
AdvancedCardFields.php
4 years ago
AjaxRequestHandler.php
3 months ago
DonationDetailsPage.php
4 years ago
DonationFormPaymentMethod.php
2 years ago
PayPalClient.php
2 years ago
PayPalCommerce.php
10 months ago
RefreshToken.php
2 years ago
RefundPaymentHandler.php
4 years ago
ScriptLoader.php
1 year ago
Utils.php
2 years ago
onBoardingRedirectHandler.php
7 months ago
DonationDetailsPage.php
26 lines
| 1 | <?php |
| 2 | |
| 3 | namespace Give\PaymentGateways\PayPalCommerce; |
| 4 | |
| 5 | class DonationDetailsPage |
| 6 | { |
| 7 | /** |
| 8 | * Return PayPal Commerce payment details page url. |
| 9 | * |
| 10 | * @since 2.9.0 |
| 11 | * |
| 12 | * @param string $transactionId donation transaction id. |
| 13 | * |
| 14 | * @return string |
| 15 | */ |
| 16 | public function getPayPalPaymentUrl($transactionId) |
| 17 | { |
| 18 | return sprintf( |
| 19 | '<a href="%1$sactivity/payment/%2$s" title="%3$s" target="_blank">%2$s</a>', |
| 20 | esc_url(give(PayPalClient::class)->getHomePageUrl()), |
| 21 | esc_attr($transactionId), |
| 22 | esc_attr(esc_html__('View PayPal Commerce payment', 'give')) |
| 23 | ); |
| 24 | } |
| 25 | } |
| 26 |