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