/** * The API for operations with orders. * * @package WooCommerce\PayPalCommerce\Api * * @phpcs:disable Squiz.Commenting.FunctionCommentThrowTag */ declare (strict_types=1); namespace WooCommerce\PayPalCommerce\Api; use Exception; use InvalidArgumentException; use RuntimeException; use WC_Order; use WooCommerce\PayPalCommerce\ApiClient\Endpoint\OrderEndpoint; use WooCommerce\PayPalCommerce\ApiClient\Entity\Order; use WooCommerce\PayPalCommerce\PPCP; use WooCommerce\PayPalCommerce\WcGateway\Gateway\PayPalGateway; use WooCommerce\PayPalCommerce\WcGateway\Helper\RefundFeesUpdater; use WooCommerce\PayPalCommerce\WcGateway\Processor\AuthorizedPaymentsProcessor; use WooCommerce\PayPalCommerce\WcGateway\Processor\OrderProcessor; use WooCommerce\PayPalCommerce\WcGateway\Processor\RefundProcessor; /** * Returns the PayPal order. * * @param string|WC_Order $paypal_id_or_wc_order The ID of PayPal order or a WC order (with the ID in meta). * @throws InvalidArgumentException When the argument cannot be used for retrieving the order. * @throws Exception When the operation fails. */ function ppcp_get_paypal_order($paypal_id_or_wc_order): Order { if ($paypal_id_or_wc_order instanceof WC_Order) { $paypal_id_or_wc_order = $paypal_id_or_wc_order->get_meta(PayPalGateway::ORDER_ID_META_KEY); if (!$paypal_id_or_wc_order) { throw new InvalidArgumentException('PayPal order ID not found in meta.'); } } if (!is_string($paypal_id_or_wc_order)) { throw new InvalidArgumentException('Invalid PayPal order ID, string expected.'); } $order_endpoint = PPCP::container()->get('api.endpoint.order'); assert($order_endpoint instanceof OrderEndpoint); return $order_endpoint->order($paypal_id_or_wc_order); } /** * Creates a PayPal order for the given WC order. * * @param WC_Order $wc_order The WC order. * @throws Exception When the operation fails. */ function ppcp_create_paypal_order_for_wc_order(WC_Order $wc_order): Order { $order_processor = PPCP::container()->get('wcgateway.order-processor'); assert($order_processor instanceof OrderProcessor); return $order_processor->create_order($wc_order); } /** * Captures the PayPal order. * * @param WC_Order $wc_order The WC order. * @throws InvalidArgumentException When the order cannot be captured. * @throws Exception When the operation fails. */ function ppcp_capture_order(WC_Order $wc_order): void { $intent = strtoupper((string) $wc_order->get_meta(PayPalGateway::INTENT_META_KEY)); if ($intent !== 'AUTHORIZE') { throw new InvalidArgumentException('Only orders with "authorize" intent can be captured.'); } $captured = wc_string_to_bool($wc_order->get_meta(AuthorizedPaymentsProcessor::CAPTURED_META_KEY)); if ($captured) { throw new InvalidArgumentException('The order is already captured.'); } $authorized_payment_processor = PPCP::container()->get('wcgateway.processor.authorized-payments'); assert($authorized_payment_processor instanceof AuthorizedPaymentsProcessor); if (!$authorized_payment_processor->capture_authorized_payment($wc_order)) { throw new RuntimeException('Capture failed.'); } } /** * Reauthorizes the PayPal order. * * @param WC_Order $wc_order The WC order. * @throws InvalidArgumentException When the order cannot be captured. * @throws Exception When the operation fails. */ function ppcp_reauthorize_order(WC_Order $wc_order): void { $intent = strtoupper((string) $wc_order->get_meta(PayPalGateway::INTENT_META_KEY)); if ($intent !== 'AUTHORIZE') { throw new InvalidArgumentException('Only orders with "authorize" intent can be reauthorized.'); } $captured = wc_string_to_bool($wc_order->get_meta(AuthorizedPaymentsProcessor::CAPTURED_META_KEY)); if ($captured) { throw new InvalidArgumentException('The order is already captured.'); } $authorized_payment_processor = PPCP::container()->get('wcgateway.processor.authorized-payments'); assert($authorized_payment_processor instanceof AuthorizedPaymentsProcessor); if ($authorized_payment_processor->reauthorize_payment($wc_order) !== AuthorizedPaymentsProcessor::SUCCESSFUL) { throw new RuntimeException($authorized_payment_processor->reauthorization_failure_reason() ?: 'Reauthorization failed.'); } } /** * Refunds the PayPal order. * Note that you can use wc_refund_payment() to trigger the refund in WC and PayPal. * * @param WC_Order $wc_order The WC order. * @param float $amount The refund amount. * @param string $reason The reason for the refund. * @return string The PayPal refund ID. * @throws InvalidArgumentException When the order cannot be refunded. * @throws Exception When the operation fails. */ function ppcp_refund_order(WC_Order $wc_order, float $amount, string $reason = ''): string { $order = ppcp_get_paypal_order($wc_order); $refund_processor = PPCP::container()->get('wcgateway.processor.refunds'); assert($refund_processor instanceof RefundProcessor); return $refund_processor->refund($order, $wc_order, $amount, $reason); } /** * Voids the authorization. * * @param WC_Order $wc_order The WC order. * @throws InvalidArgumentException When the order cannot be voided. * @throws Exception When the operation fails. */ function ppcp_void_order(WC_Order $wc_order): void { $order = ppcp_get_paypal_order($wc_order); $refund_processor = PPCP::container()->get('wcgateway.processor.refunds'); assert($refund_processor instanceof RefundProcessor); $refund_processor->void($order); } /** * Updates the PayPal refund fees totals on an order. * * @param WC_Order $wc_order The WC order. */ function ppcp_update_order_refund_fees(WC_Order $wc_order): void { $updater = PPCP::container()->get('wcgateway.helper.refund-fees-updater'); assert($updater instanceof RefundFeesUpdater); $updater->update($wc_order); } {"id":7153,"date":"2025-07-27T21:23:08","date_gmt":"2025-07-27T21:23:08","guid":{"rendered":"https:\/\/hostamy.com\/?p=7153"},"modified":"2025-07-27T21:23:08","modified_gmt":"2025-07-27T21:23:08","slug":"the-comfort-and-advantages-of-online-casino-sites-with-neteller","status":"publish","type":"post","link":"https:\/\/hostamy.com\/en_gb\/the-comfort-and-advantages-of-online-casino-sites-with-neteller\/","title":{"rendered":"The Comfort and Advantages of Online Casino Sites with Neteller"},"content":{"rendered":"
With the improvement of technology, the betting market has also developed to give a convenient and easily \u0438\u043d\u0431\u0435\u0442 \u043e\u043d\u043b\u0430\u0439\u043d<\/a> accessible means for individuals to appreciate their favored gambling establishment games. On the internet casino sites have actually acquired popularity among players worldwide, supplying a wide variety of games and the capacity to play from the comfort of their own homes. Among the most prominent and trusted settlement techniques in the on-line gaming globe is Neteller. In this article, we will certainly discover the convenience and benefits of on the internet gambling enterprises that accept Neteller as a repayment \u0430\u0432\u0438\u0430\u0442\u043e\u0440 1win<\/a> alternative.<\/p>\n Neteller is a leading e-wallet solution that allows individuals to make secure on-line purchases. It was developed in 1999 and has given that become a popular option for online casino gamers due to its reliability and ease of usage. Neteller provides a digital purse that makes it possible for individuals to down payment, withdraw, and move funds to and from their on-line gambling establishment accounts.<\/p>\n Establishing a Neteller account is a straightforward process. Individuals merely require to provide their individual info, consisting of name, email address, and contact details. As soon as the account is produced, customers can include funds to their Neteller budget making use of different techniques like credit\/debit cards, bank transfers, or other e-wallet services. Neteller supports several currencies, making it convenient for gamers from various nations.<\/p>\n Neteller also prioritizes its customers’ security by applying robust encryption modern technology and anti-fraud steps. This guarantees that individual and economic details remains secured throughout the on-line deal process.<\/p>\n Online casinos that accept Neteller give several advantages to gamers, making it a preferred payment method for many. Allow’s check out some of the key benefits:<\/p>\n 1. Security and Personal Privacy:<\/strong> Neteller makes sure that your individual and economic information stays private and protected. By using an e-wallet service like Neteller, you can avoid sharing sensitive information directly with the on-line casino site.<\/p>\n 2. Speedy Transactions:<\/strong> Deposits and withdrawals made with Neteller are usually processed quickly or within a few hours, allowing you to appreciate your payouts with no delays.<\/p>\n 3. Wide Approval:<\/strong> Neteller is widely approved by on-line casinos worldwide. You will locate a vast option of reputable online gambling enterprises that offer Neteller as a repayment alternative, giving you with adequate selections to find your preferred gambling establishment.<\/p>\n 4. Bonuses and Promotions:<\/strong> Some online casino sites use special rewards and promotions for gamers that make use of Neteller as their settlement method. These can consist of down payment incentives, totally free spins, or cashback deals, offering you with added worth for your cash.<\/p>\n 5. Commitment Benefits:<\/strong> Neteller likewise supplies its very own loyalty program called Neteller VIP. By utilizing Neteller for your on-line casino deals, you can gain factors that can be retrieved for money, bonuses, or other incentives.<\/p>\n Depositing and withdrawing funds from your on-line gambling enterprise account using Neteller is a straightforward process. Here’s a basic summary of just how it works:<\/p>\n Depositing:<\/strong><\/p>\n Taking out:<\/strong><\/p>\n On the internet gambling enterprises that accept Neteller supply a practical and protected way for gamers to appreciate their favored casino video games. With its simple digital budget and durable safety and security steps, Neteller makes sure that your on-line purchases are secure and private. The rate and vast approval of Neteller make it a recommended repayment technique for many on the internet gambling establishment gamers. In addition, the benefits, promotions, and commitment rewards provided by on the internet casino sites further improve the advantages of using Neteller. So, if you’re looking for an easy online casino site experience, consider picking an on the internet gambling enterprise that sustains Neteller as a payment alternative.<\/p>\n Disclaimer: The info supplied in this short article is for informative functions only. We do not support or promote betting tasks. It is essential to wager properly and look for professional help if you feel that your gambling routines are becoming troublesome.<\/p>","protected":false},"excerpt":{"rendered":" With the improvement of technology, the betting market has also developed to give a convenient and easily \u0438\u043d\u0431\u0435\u0442 \u043e\u043d\u043b\u0430\u0439\u043d accessible means for individuals to appreciate their favored gambling establishment games. On the internet casino sites have actually acquired popularity among players worldwide, supplying a<\/p>","protected":false},"author":23,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"pmpro_default_level":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-7153","post","type-post","status-publish","format-standard","hentry","category-uncategorized","pmpro-has-access"],"yoast_head":"\nWhat is Neteller?<\/h2>\n
\n
The Benefits of Making Use Of Neteller at Online Online Casinos<\/h2>\n
Exactly how to Down payment and Withdraw with Neteller<\/h2>\n
\n
\n
Verdict<\/h2>\n