This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Determine the EU VAT rate based on country code | |
* | |
* @param string $country 2-letter ISO country code in uppercase | |
* @return float The VAT rate (percent) for the country | |
*/ | |
function lookup_vat_rate_by_country($country) { | |
switch ($country) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TypeError: $ is not a function | |
/wp-content/themes/specular/js/main.js?ver=1:9 HTMLDocument.() | |
/wp-includes/js/jquery/jquery.js?ver=1.12.4:2 i() | |
/wp-includes/js/jquery/jquery.js?ver=1.12.4:2 Object.fireWith [as resolveWith]() | |
/wp-includes/js/jquery/jquery.js?ver=1.12.4:2 Function.ready() | |
/wp-includes/js/jquery/jquery.js?ver=1.12.4:2 HTMLDocument.K() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery.noConflict(); | |
(function ($) { | |
"use strict"; | |
$(function () { | |
// Code continues here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//jQuery.noConflict(); | |
(function ($) { | |
"use strict"; | |
$(function () { | |
// Code continues here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: WP Full Stripe | |
Plugin URI: https://paymentsplugin.com | |
Description: Complete Stripe payments integration for Wordpress | |
Author: Mammothology | |
Version: 4.1.0 | |
Author URI: https://paymentsplugin.com | |
Text Domain: wp-full-stripe | |
Domain Path: /languages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//Stripe PHP library | |
if ( ! class_exists( '\Stripe\Stripe' ) ) { | |
require_once( dirname( __FILE__ ) . '/vendor/stripe/stripe-php/init.php' ); | |
} else { | |
if ( substr( \Stripe\Stripe::VERSION, 0, strpos( \Stripe\Stripe::VERSION, '.' ) ) != substr( WP_FULL_STRIPE_STRIPE_API_VERSION, 0, strpos( WP_FULL_STRIPE_STRIPE_API_VERSION, '.' ) ) ) { | |
$reflector = new ReflectionClass( '\Stripe\Stripe' ); | |
wp_die( plugin_basename( __FILE__ ) . ': ' . __( 'Another plugin has loaded an incompatible Stripe API client. Deactivate all other Stripe plugins, and try to activate Full Stripe again.', 'wp-full-stripe' ) . ' ' . \Stripe\Stripe::VERSION . ' != ' . WP_FULL_STRIPE_STRIPE_API_VERSION . ', ' . $reflector->getFileName() ); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//Stripe PHP library | |
if ( ! class_exists( '\Stripe\Stripe' ) ) { | |
require_once( dirname( __FILE__ ) . '/vendor/stripe/stripe-php/init.php' ); | |
} else { | |
/* | |
if ( substr( \Stripe\Stripe::VERSION, 0, strpos( \Stripe\Stripe::VERSION, '.' ) ) != substr( WP_FULL_STRIPE_STRIPE_API_VERSION, 0, strpos( WP_FULL_STRIPE_STRIPE_API_VERSION, '.' ) ) ) { | |
$reflector = new ReflectionClass( '\Stripe\Stripe' ); | |
wp_die( plugin_basename( __FILE__ ) . ': ' . __( 'Another plugin has loaded an incompatible Stripe API client. Deactivate all other Stripe plugins, and try to activate Full Stripe again.', 'wp-full-stripe' ) . ' ' . \Stripe\Stripe::VERSION . ' != ' . WP_FULL_STRIPE_STRIPE_API_VERSION . ', ' . $reflector->getFileName() ); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[fullstripe_thankyou] | |
[fullstripe_thankyou_success] | |
Hello %CUSTOMERNAME%, | |
Here's your receipt for your payment: | |
Transaction ID: %TRANSACTION_ID% | |
Customer Name: %CUSTOMERNAME% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
msgid "Hello" | |
msgstr "" | |
msgid "Home" | |
msgstr " |
OlderNewer