Actions
4 years ago
DataTransferObjects
4 years ago
Exceptions
4 years ago
Migrations
4 years ago
Models
4 years ago
Repositories
4 years ago
Webhooks
4 years ago
AccountAdminNotices.php
4 years ago
AdminSettingFields.php
4 years ago
AdvancedCardFields.php
4 years ago
AjaxRequestHandler.php
4 years ago
DonationDetailsPage.php
4 years ago
DonationFormPaymentMethod.php
4 years ago
PayPalClient.php
4 years ago
PayPalCommerce.php
3 years ago
RefreshToken.php
4 years ago
RefundPaymentHandler.php
4 years ago
ScriptLoader.php
4 years ago
Utils.php
4 years ago
onBoardingRedirectHandler.php
4 years 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 |