Giter VIP home page Giter VIP logo

wpmarketplace-stripecheckout's Introduction

WP MarketPlace Stripe Checkout gateway

Incomplete as yet. Hopefully this saves trouble for someone who finds they need to use WPMarketPlace and Stripe.

This uses Stripe Checkout, which is a two part process:

  • The javascript form is filled out, creates a single-use payment token
  • The payment verification function within WPMarketplace uses the single-use token to create the charge, providing Stripe with more customer information from the WP Marketplace plugin.

Tested on...

  • WordPress 3.8
  • WP Marketplace 2.3.5

Installing the dependencies

Composer

Copy the dependency in composer.json to your own composer.json file, or otherwise install that version of Stripe's PHP API.

Run the composer install process.

PHP Curl

Stripe requires PHP's cURL libray, and this is not provided in the Composer install process in any way. Install this somehow.

Installing the gateway

  • Locate the wpmarketplace plugin within your wordpress directory, probably:

    YOUR_WORDPRESS_DIR/wp-content/plugins/wpmarketplace/

  • Change to the following:

    cd libs/payment_methods/

  • Check out this repo there into a directory with StripeCheckout as the name:

    git clone https://github.com/rtxanson/wpmarketplace-stripecheckout.git StripeCheckout

  • Confirm within WP Marketplace settings that the gateway is installed.

  • Configure as specified, and test.

Problems

  • For some reason my version of WP Marketplace did not show a nice payment received thing at the end. This could be because my implementation is incomplete.

  • There are some TODOs to handle.

wpmarketplace-stripecheckout's People

Contributors

rtxanson avatar

Watchers

 avatar  avatar

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.