Woocommerce Payment System - php

Salutations!
I want to crate a payment system on Woocommerce. That accept code payment(like how you recharge your phone), My website will only have items with one price so it will be easy.
So the problem is that I want my plugin/system to generate by its on codes(like 100 unique codes)...in which the person can buy items with the codes, not a discount like coupons.
I do not know hoe to start, Thank you.

I understand you wish to provide a payment method that requires the buyer to provide some random card number which your plugin must generate and store in a table.
Since you don't wish to use a voucher for this purpose I suggest you develop a payment extension to handle the process, however ensure you do series of tests before you go live.
Here is a tutorial that will get you started on woo commerce payment extension plugin. You can also see woo commerce documentation
http://www.sitepoint.com/ http://www.sitepoint.com/building-a-woocommerce-payment-extension/

Related

One time stripe payment webpage wordpress

Is there a way to easily have a payment webpage that can be used only one time. Here is the scenario :
I sell my product by phone for example 20$
I generate a webpage for this 20$ payment
I send the URL to the client.
He pays the product
I send the product
Etc... for other clients, the amount needs to be easily customisable.
It would be great if the payment doesn't need to create an account on my website. For information I am using wordpress on my website so if any plugin can make it easily it would be greet
You should have a look at Stripe Checkout, it seems to cover all your use cases.

Unable to add multiple variable subscription products in WooCommerce in Cart

FYI - The below mentioned process works perfectly fine on localhost (local env) but not on our server.
I'm developing a feature called "Home Try On" where we are allowing the customers to buy two pairs of shoes at the same time at the cost of one, but if customer fails to return the product then we would be deducting the cost of the other product using Recurring Payment Method. So, to ease out the process we purchased "WooCommerce Subscriptions" but it's not allowing the customers to add multiple products.
Here is an example scenario of actual work flow - We have kept all the Home Try On products as Variable Subscription products
Customer visits the website
Customer goes to Home Try On Section if he/she is unsure of their shoe size
Customer selects on Product let's say it as X Product and selects one pair (Size 6) and adds to cart, now we want the customer to add another pair of X Product (Size 7) but the problem is it's now allowing to add multiple variable subscription products and throws an error "A subscription has been removed from your cart. Due to payment gateway restrictions, different subscription products can not be purchased at the same time."
Can someone help me out on this? We purchased the WooCommerce Subscription plugin because it mentioned multiple subscriptions are accepted. It stated:
Your customers can also purchase different subscription products in
the same transaction and Subscriptions will group the products to
reduce the payment gateway fees and logistical overhead for their
future renewals.
Can anyone please point me in the right direction please?
Regards,
Piyush
For anyone that finds this question:
You haven't activated stripe yet. As the subscriptions plugin needs stripe woocommerce needs to have stripe activated!
it is free. just go to stripe and create an account. there you get two keys that you can use on your side.
hope this helps someone

WooCommerce - pay order with multiple payment methods at same time

I want to know if there is a way to customize WooCommerce such that the clients could pay the same order with multiple payment methods at the same time?
For example, if one order is worth $100, I want to allow clients to pay $25 with a Visa card, then $75 with a Discover card. So the general idea is to pay one order (don't checkout multiple times), but use more than just one payment method.
I assume there is some way to personalize something, but I want to know where/how to get started with it.
EDIT 1
Just adding a new payment gateway (custom) does not solve the issue. I know how to create a custom payment gateway.
The issue is: how do I allow on ONE checkout for ONE order to get the payment out of 2 or more sources at the same time? For example: $175 cashed in as $50 PayPal + $100 Visa + $25 MasterCard.
There are many clients who would love to have this option, and pay with more cards at the same time!
So, this is not one of those obvious questions as how do I create a custom payment gateway? - that is something easily achievable without spending too much time on it. The multiple payment on same checkout, however, proves to be lengthy / not discussed (I've researched many articles, forums, etc.)
What I would do is to create a custom payment gateway, and in that gateway, create interfaces for ALL the payment methods you want to use.
I would say use something like Stripe for all the CC and then PayPal - that way you will have only two separate ones to handle.
You need to put in an option to pay X amount on each payment gateway on the Checkout screen.
Then in your plugin when someone partially pays, create a coupon for the amount of the partial payment using the Coupon API and apply that.
You will also need an Order Status of Partial Payment or something. You would also need to redirect back to the Checkout page if the order isn't completely paid, instead of the Order Success page.
It's pretty complicated to do this right.
Workaround: You can purchase a gift card on our site for any amount with one credit card. You can then use the gift card and then use another credit card for the balance.
Example: Total price $450
Gift card purchase (Card "A"): $400
Credit Card balance (Card "B"): $50

receive payments with paypal

I'm creating a really small website where I'll sell some products.
I need this website to show the available products, the users can add to the cart, and pay at the end, then I'll send the product for them by my self. It's a really small business.
I was taking a look at the paypal options and I didn't understand very well how it works.
For what I understand, with a free account I can only use their buttons, but I can't have a dynamic solution where I can manage my products on my website (look's like I need to add the products information like name and price on their website ).
What I wanted to do was just use my own website to handle this very simple store/products, and at the end, the user click on a CheckOut button, and Then I redirect the user to a paypal page where they can pay for the total value and then paypal redirect them back to me ( as a free account or at least with the 5$ account ).
Is that possible?
By the way I'm using CakePHP to build that, and I already have the website built with this framework, and to build what I need it's more than enough, I don't really need any solution like magento or others eCommerce platform.
Thank you.
If you use Paypal's free account then your visitor will leave your website, go to Paypal's website to make the payment, and then return to your website. Paypals paid version allows you to keep your visitor on your page, but you have to program you site to work with their API. Plus the cost can add up. Paypal also has other service other than just buttons. For instance they have a shopping cart too, but here again your vistor will leave your website to go to Paypals site to add the items to the shopping cart.
Another company that you might want to look at is https://stripe.com/ here you keep the vistor on your site as well as only paying per transaction rather than a monthly fee like at Paypal.
If you want to manage your items and inventory from your website and not enter everything into buttons at PayPal.com, I would suggest that you use Express Checkout. Express Checkout is also a free service and allows you to send all of the payments details to PayPal via API and PayPal will authenticate and allow your buyers to select shipping details. The user can then be redirected back to your website to complete their order.
You can find additional information here: https://www.x.com/developers/paypal/documentation-tools/express-checkout/gs_expresscheckout
Thanks,

Custom VirtueMart Options

I'm working on a project that ties into an API and uses virtuemart. Basically a user can buy time for a phone card. the few things I need help with are:
A) can/how can I create a custom php function once the user signs up. For instance, the user adds Items to the cart and proceeds to checkout. once the user clicks checkout they need to create an account, after they create an account is there an area in this process that allows for a custom function so that I can tie the creation of the account to an API?
B) same as above but after checkout. After the checkout goes through, how can I make it so the new values are sent to the API? Is there an area in the files that allow for custom functions here.
C) Lastly is it possible to add more options the the virtuemart customer account maintnance screen. I want an option that will tie into the API and show them exactly how much time the have left for their phone card. This information will be provided by the api.
All of these things can be achieved with a System Plugin. You would simply look for the right url, get any information from the result screen with regex, call your API and insert any changes back into the screen.
I'm not specifically aware of any VM functions for this, but as VM is in flux with Version 2 getting closer, it may not be a good time for any such investment in any case.

Categories