danieliser / rcp-taxamo Goto Github PK
View Code? Open in Web Editor NEWTaxamo Extension for Restrict Content Pro.
License: GNU General Public License v2.0
Taxamo Extension for Restrict Content Pro.
License: GNU General Public License v2.0
=== Restrict Content Pro - Taxamo Integration === Contributors: danieliser, mordauk Tags: Restrict Content Pro, Taxamo, VAT Taxes Requires at least: 3.0.1 Tested up to: 4.1 Stable tag: 1.0.1 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html This adds Taxamo VAT Tax integration to your existing Restrict Content Pro site. == Description == This adds Taxamo VAT Tax integration to your existing Restrict Content Pro site. Includes full support for all future subscriptions using Paypal. Stripe Integration will be added shortly. Setup Guide. 1. If you haven't already sign up for [Taxamo](http://www.taxamo.com/). 1. If your taxamo email doesn't match your sites domain then you need to do this. 1. In your Taxamo Dashboard, Navigate to Integrate -> JavaScript API 1. Add your sites domain to the Currently configured additional domains under WEB API Referers. 1. In your Taxamo Dashboard, Navigate to Integrate -> API Tokens 1. Once signed in navigate to Integrate -> API Tokens 1. If you are testing, you need the Test access tokens. 1. If not, provide your business details and activate your account, then copy the production access tokens. 1. In your RCP Sites Admin Dashboard, Nagivate to Restrict -> Settings. 1. Enter both your Public and Private token. Enter test tokens to test, production for live sites. 1. Choose whether tax is included or added for new purchases. Currently VAT Tax will only apply to new subscribers. We are trying to determine the best way to implement this for existing subscriptions but this requires determining there billing location and verifying it. This may require users to at a minimum update their profiles with their billing country. Options for this include forcing tax included for all paypal payments. Stripe allows adding tax to any new invoice so it won't be an issue. Paypal will likely require users to modify their subscription in order to add tax. == Installation == 1. Upload the `rcp-taxamo` folder to the `/wp-content/plugins/` directory 2. Activate the plugin through the 'Plugins' menu in WordPress 3. Add your Taxamo API information to the RCP Settings Page. 4. On your Taxamo Dashboard, under APIs, click the Javascript Tab, and add your domain to the list of allowed domains. == Changelog == = 1.0 = * Initial Release.
So in order to get proper placement I had to add a hook here https://github.com/danieliser/Restrict-Content-Pro/blob/master/templates/register.php#L53
The only other places to put hook it either meant it only showed up if they weren't logged in, or came before the registration/login fields which seemed out of place, third was below the pricing which didn't make since as the price options update dynamically when you change to a country with tax.
Existing subscription payments will need to be reported, but by default the store won't have the needed data to calculate VAT taxes. Country of Billing, IP of purchase, VAT ID, or CC #.
These payments will remain untaxed until that info can be collected. At which point 2 options are available.
Both options 1 & 2 require collecting VAT info from the users, otherwise transactions remain untaxed.
Taxamo requires that all transactions are logged, reguardless of tax status and this has been accounted for. Without VAT data tax cannot be applied.
When a subscription level has a price of 0, Taxamo returns the error message: "Please provide either amount or total_amount for all order lines."
I debugged this a bit. It seems like the form element input#rcp_taxamo_amount has value="" when the form gets submitted. So nothing gets sent to Taxamo. I guess Taxamo expects a value of 0 (or some other number).
Can you check this out and let me know? And please let me know if I can help any way to further debug or fix this.
I'm getting this when clicking Register
:
Fatal error: require(): Failed opening required '/Users/pippin/Sites/edd/wp-content/plugins/rcp-taxamo//includes/libraries/taxamo-php/lib/Taxamo.php' (include_path='.:/Applications/MAMP/bin/php/php5.6.2/lib/php') in /Users/pippin/Sites/edd/wp-content/plugins/rcp-taxamo/includes/class-rcp-taxamo-payments.php on line 193
Will there be a Stripe update to this plugin? Or is the modification to RCP done or available in some form?
Specifically here https://github.com/danieliser/rcp-taxamo/blob/master/includes/class-rcp-taxamo-public.php#L94
Not 100% sure what the issue is. I have tried using a bindFirst function which ensures my event is set to trigger first, but the RCP Stripe JS callback triggers the form to submit which bypasses this needed call.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.