Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
As I can't find an out of the box solution for recurring payments through both Paypal and Braintree on Merchello, I have used paypal checkout to create a paypal button on the payment page. Once a user has been authorised through PayPal, I post the credentials which includes a nonce to a Surface Controller (through Ajax) which communicates with the Braintree Api directly to create a new Braintree customer (if they don't already exist) and then set up a new subscription.
Once the subscription is created, I create a new Merchello Invoice which all works fine! However, first, I want to go directly to the payment page when I click "checkout" in the basket, however, this causes the error message "invalid checkout stage" to be displayed as I have not set the payment method. Is it possible to set the payment method to a null value (as I don't use a specified payment provider)? If not, I roughly know how to create a custom payment provider but can't think how I would go about it to work with my current solution.
I have a current question that is very similar to yours.
This is what I have done so far. In my senerio I want to go straight to the delivery address form and I get invalid checkout stage just like you, becuase I don’t have a billing address.
I downloaded the soure code for Merchello removed the reference to all the Merchello dlls and replaced them with the Merchello source.
Stepping through the code I can see I get the invalid error becuase billing address has not yet been saved. So using VS I just jump that line and it works just fine.
I’m guessing the code in the base controller is all set up to check something that you have not set yet.
So........ I’m going to try a method in my toplevel controller that overrides that method with the code changed according.....or just create another action method with a different name and use that instead.
Haven’t tried it yet though. - I have found it hard to get help with Merchello in general but downloading the source code wicth includes fasttrack source code too has been the way I have been working it out.
Let me know how you get on, hope that helps.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted