We have an ASP.NET web site containing a product catalogue. We have now been asked to add on shopping cart and payment functionality. However, as this is a trial, it needs to be cost free (as far as reasonable) and there is no SSL certificate installed.
So we've turned to PayPal as a solution, but before we digest the manuals, is this a good approach?
Can a collection of items in a basket (in ASP.NET) be pushed into PayPal's own hosted payment pages? This would be easiest for us as we can easily create the basket and contents within the ASP.NET site
Is there a way (using API or whatever) to 'Add to Basket' without redirecting the shopper to PayPal and then back to our site again?
Is there a better way all round that we've missed?!?
All advice will be up-voted - this a fact-finding journey for us before we start any work.
there is no SSL certificate installed
You will have to get an SSL certificate to do anything with payment gateways.
Can a collection of items in a basket (in ASP.NET) be pushed into
PayPal's own hosted payment pages?
Yes they can.
This would be easiest for us as we can easily create the basket and
contents within the ASP.NET site
You'll still need to arrange the data in a PayPal-friendly way.
Is there a way (using API or whatever) to 'Add to Basket' without
redirecting the shopper to PayPal and then back to our site again?
Yes there is but this costs more and the integration will be slightly more involved.
Is there a better way all round that we've missed?!?
Depends on what's needed. A simple or semi-professional shop can redirect to PayPal but a large or professional shop should have integrated payment as well as a PayPal option. The integrated payment option doesn't need to be PayPal.
Think about currencies, refunds, cancellations, documentation and customer-service-quality when choosing your payment gateway.
Related
I'm currently migrating a website from WooCommerce to Shopware 6, which needs to support recurring payments for a membership subscription.
WooCommerce is still using PayPal Standard, which allows you to mix non-recurring line items with a recurring subscription, in a single checkout flow.
Shopware 6 uses the REST API, which doesn't appear to support this ability and the only solution appears to be using the Javascript SDK:
User clicks Pay with PayPal.
Subscription is created via actions.subscription.create
Dialog is displayed requesting approval.
Customer approves.
Submit original checkout.
Redirect to PayPal.
Complete payment.
Redirect back to website with confirmation.
A potential solution I'm looking into now is changing the return URL of the initial order creation to redirect to a billing agreement approval URL and have the return URL's of that redirect back to the original return url.
Overly complicated and the worse UX I've ever seen.
Before I tear what's left of my hair out, does anyone have any suggestions?
UPDATE
Although it isn't the solution I was hoping for, I ended up removing the Shopware 6 PayPal plugin and implementing my own payment method using the NVP API.
From the user perspective, there is only one approval process. In the backend, once the user has approved the transaction (that has been marked as needing a billing agreement) the transaction is verified and then a recurring profile is created.
There's no way to combine Subscriptions and one-time payments in a single checkout. Such items even require different parameters on the PayPal SDK line, if using the PayPal buttons to show an in-context experience.
The in-context experience is best, since it involves no redirects away from your site to PayPal and back. Here is the flow for one-time payments:
Make two routes on your server, one for 'Create Order' and one for 'Capture Order', documented here. These routes should return only JSON data (no HTML or text). The latter one should (on success) store the payment details in your database before it does the return (particularly purchase_units[0].payments.captures[0].id, the PayPal transaction ID)
Pair those two routes with the following approval flow: https://developer.paypal.com/demo/checkout/#/pattern/server
A similar (separate) flow can be used for PayPal Subscriptions. Only one subscription can be approved at a time.
I am working on a college project which is a website in which i am buying some products from customer or user. So i want to pay them for the stuff that i buy from them.
But directly providing them cash instead i want a wallet system in which i can transfer money in their wallet so that there will be a proof of our transaction.
Is there any plugin in wordpress which can solve my above problem. Since i am new in wordpress so i don't know how to achieve this.
Please tell me that whether should i be able to achieve this type of wallet system or not?
So essentially you want to buy products from customers and pay them for that but without actually giving them cash.
Here are my thoughts about this and possible solutions:
Without a website:
You can easily use Paypal to do this without any website and therefore you will be able to send money using your Paypal account to their Paypal account with any cash transaction (Paypal keep all records of the transaction so you can use it for finance).
With a website:
You install some plugins that will turn your website into a multi vendors market Where users can sell their products directly inside your website. This solution will offer functionalities similar to famous sites like Amazon and eBay. Choosing this solution will allow your customers to sell you services or products and they get paid to their Paypal account despite the payment method you use (except cash), this way the transactions will be happening using electronic wallets which in this example PayPal and all records for transactions will be logged.
The last note is, depending on how much manual work you want to do the solutions will vary.
You may need some assistance o building such a website. Contact me if you need help.
Thanks.
This is completely new territory for me. I'm in the process of getting up to speed with WordPress with the aim of using it as a resource to raise funds for charities. I've been looking at links such as:
https://developer.paypal.com/docs/classic/lifecycle/ug_sandbox/
and
https://www.paypal.com/us/selfhelp/article/How-can-my-charity-or-nonprofit-use-PayPal-to-collect-donations-FAQ1068
together with a number of other resources, but I need to know exactly where to start from scratch.
Basically I would like to set up a test PayPal account which can accept dummy credit card numbers for both dummy deposits and withdrawals in order to test it out in such a way that from a WordPress theme I can make mock donations, then check that the "balance" has been credited, then be a dummy charity that can make mock withdrawals.
Presumably there are free test accounts that can do this with documentation. I've looked at some of the documentation, but it would be nice to know where to start, as there is so much.
Looking forward to some friendly and helpful reply.
Christopher Sharp
To answer this question simply, use https://www.sandbox.paypal.com.
If you want to manage all your sandbox accounts, you will need to create the accounts within PayPal Developer.
Visit PayPal Developer and sign up for a PayPal account or login to an existing one.
To access PayPal Developer site, you need to login with a real PayPal account (non-sandbox).
Create a sandbox account after logging into PayPal Developer.
You will be creating a testing account you will use when logging into the testing environment.
After creating all the accounts you need, ie. receiving side (you) & sending side (donator), you can use these accounts to make sandbox transactions.
Basically, production is www.paypal.com and sandbox (testing) is www.sandbox.paypal.com.
As with PayPal integration with WordPress, there should be a lot of plugins for this. You can even just generate a HTML donate button from within your PayPal account to create a donate button that will send donation to that account which generated the button.
I am working on this website: http://wolves.phiresky.com/
It is an ASP.NET webpage using entity framework.
How can I make this a shopping cart?
How can I make this a shopping cart which can integrate with PayFast.co.za Payment Gateway?
The way that most developers create a shopping cart, including myself, is to create a object, often called cart, and then place that cart object into the visitor's session. This way the cart is accessible via the session object each page request. Integrating with a payment gateway is a whole other matter. To do that you will need to review the api documentation from the payment gateway company and then call the payment api's as appropriate.
The easiest to get started with a payment gateway is to try out Paypal, they offer test accounts and there is plenty .Net documentation to get you started. So using that you can run a test and see how online payments can be integrated. Also i see your prices are in ZAR, there is a couple of SA based payment gateway companies that you can easily integrate with, just run a google on SA payment gateway companies.
I am using paypal express checkout where i can create take payment for an order with multiple recurring payment profiles in it. e.g. initial payment £5, item A £3 every month, item B £5 every year.
I am asked to implement this using website payments pro hosted solution using iframe API now.
But i can't figure out how to pass this order to it.
According to Integration guide I need to use Button Manager API and create a template= templateD button type, but that button type only accept one profile.
https://www.paypalobjects.com/webstatic/en_GB/developer/docs/pdf/hostedsolution_uk.pdf
you cannot create a recurring profile through the Hosted Payments endpoint by passing "Payments Standards" variables.
The PayPal system will automatically do a 302 redirect to the webscr endpoint (if the browser were to load the page outside of the iframe, with X-Frame-Options set, it refuses to load at all).
You cannot create recurring payments profiles through HSS (hosted sole solution). This product will merely take credit card payments from your site.