skip to Main Content

PayPal API specifying currency SGD

I'm developing a payment system with PayPal API. Everything works except that the transaction is in USD and not SGD (like how I want it to be). PayPal Button from react-paypal-button-v2 <PayPalButton currency='SGD' amount={parcel.basePrice} onSuccess={successPaymentHandler} /> Script to add PayPal…

VIEW QUESTION

Making an exception for one coupon – Woocommerce

I am ussing this code to disable Paypal when any user use a coupon: add_filter('woocommerce_available_payment_gateways', 'applied_coupons_hide_payment_gateways', 20, 1 ); function applied_coupons_hide_payment_gateways( $available_gateways){ // Not in backend (admin) if( is_admin() ) return $available_gateways; // If at least a coupon is applied…

VIEW QUESTION
Back To Top
Search