Giter Site home page Giter Site logo

rcp-taxamo's Introduction

=== 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.

rcp-taxamo's People

Contributors

danieliser avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

tannerm

rcp-taxamo's Issues

How to handle existing subscriptions.

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.

  1. Maybe obvious but setting up a migration path for users to migrate to a new plan. Would need to cancel existing subscription and create a new one with customer VAT info for taxing.
  2. Taxamo supports passing both amount ( tax added to ), and total_amount ( tax already included ), For new subs we generally use amount. For existing subs we could use total_amount meaning tax is removed from the initial sale price. EX. Sub rate at $10/mo. VAT applied to new subs will make price ~$12.00. That uses the amount parameter. If instead we use total_amount it then works out like this. Customer Pays $10 ( $8.20 + $1.80 tax ).

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.

Taxamo error on free memberships

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.

Issues with committing to own git

I have installed the plugin via Wordpress and it is working as expected. When I try and commit the plugin to my repository I get the attached fatal error in Sourcetree. Any ideas?

Thanks
screen shot 2015-05-20 at 15 03 57

Fatal error: failed opening

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.