Friday, October 07, 2022
Text Size

You need to be a subscriber in order to receive support. We provide free documentation for our extensions, accessible for everyone to read. If you want to ask a pre-sales question, you don't have to be a subscriber. Just use the Contact Us link at the top or footer of the site.

Subscribe

Please make sure that your question is not answered in the documentation, or in the tickets below before submitting a ticket for support. It will save you time!

#149 – Invalid source object: must be a dictionary or a non-empty string.

Posted in ‘Stripe for VirtueMart’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Wednesday, 28 August 2019 15:36 IST
XO
 Hello,

So close!

I checked other tickets with this issue and tried checking the 'onepage checkout' option in virtuemart config/checkout, but no luck.

Am using One Page Checkout for Virtuemart (http://vmonepage.com)

Your product worked perfectly in test mode (using 'source' => "tok_visa") but when I switched to live and changed 'source' => $stripe_token_id, did not work as, it appears stripe_token_id comes back blank.

All input is correct but apparently am not getting a stripe_token_id. Can I create a token_id manually? Not sure how to fix. I thought was going live after so many successful test runs. Now stuck. Please let me know if I need to or can change any code anywhere or set something or config. I notice that in the onepage parameters that ajax is set for zipcode, not sure that matters. I hope this is a simple fix and/or workaround. Thanks for your help as am really looking forward to go-live now.

..am using
* @version 2.1.0
* @version Stripe PHP libraries (bindings) v3.23.0
* Stripe API version 2015-02-18.

Regards,
Steve
Wednesday, 28 August 2019 16:10 IST
herve
Hello Steve,

Thank you for using our plugin for VirtueMart.

Your product worked perfectly in test mode (using 'source' => "tok_visa") but when I switched to live and changed 'source' => $stripe_token_id, did not work as, it appears stripe_token_id comes back blank.


Please could you be more specific about the changes you mentioned, is it directly a hack in the code?

Kind regards,
Hervé
 
Thursday, 29 August 2019 15:30 IST
XO
Hi Hervé,

I suppose you could say that..

I am a coder with years of experience (but not so much PHP;), however, I was able to pinpoint the line of code that caused the nasty error page. I then googled, as your support was closed, and found somewhere that source must = "tok_visa" so I replaced a line, thinking perhaps your set-up worked for live-only and not test, thus:

// existing method using JS token
try {
$charge = \Stripe\Charge::create ( array (
// 'source' => $stripe_token_id,
'source' => "tok_visa",
'amount' => ...
) );

and it worked, and all my testing worked, and all test transactions were properly logged at stripe. I thought, "cool, now all I have to do is change back to use $stripe_token_id when the website is live...".

Now, I realize that $stripe_token_id should probably not have been null for test either and that it was blank for both test and live (and was probably not intended to be blank for test either). My apologies for the intrusion. However, this does prove that all data is getting to stripe, except token_id.

Would love to go-live this weekend if at all possible. Anything else I can try to get token_id set would be truly appreciated.

Have a great day,
Steve

Friday, 30 August 2019 16:18 IST
XO
Anything you can think of Hervé in terms of why token_id is not being set?
Friday, 30 August 2019 16:50 IST
herve
Hi Steve,

Thank you for using our plugin for VirtueMart.

Sorry for the unusual delay in replying. I am very busy with clients requests and SCA/PSD2 right now, and will go overtime in the next few days or weeks I supposed.

I will get back to you as soon as I can.

Kind regards,
Hervé
 

Please rate this ticket

Help us improve our support services by rating this ticket from one to five stars, according to how much you are satisfied from the handling of this ticket, one being not satisfied and five being very satisfied.

Support Hours

Our opening hours are Monday to Friday 09:30 – 17:30 Irish Summer Time (GMT+1). See our local time.
The ticket system is closed on weekends and outsides these days: you can neither file new tickets or reply to existing ones.

Popular Joomla Posts

Stripe for Joomla & VirtueMart: SCA and PSD 2, Questions and Answers

With the Strong Customer Authentication (SCA) deadline falling on Saturday, 14 September 2019, we received a lot of questions...

Reviews for Stripe for VirtueMart

star starstarstar star 
Functionality

Once you go through the documentation and try out the settings (and don't forget to test it with a "test item", it works like a dream.

Ease of use

Very easy to use, though a little play with the settings may be needed to get an understanding of the system. And you need a stripe account.

Support

Best support ever. Hervé has been very patient and kind and helped me greatly when the Stripe plugin no longer spoke with the new updates.

Documentation

Documentation is very good. You do need a Stripe account, and you need a little "try out" time to get it all in place.

Value for money

Yes, very much value for money. The plugin, Hervé's support, the easy for the customers to use it. It is all worth it.

I used this to: I use it for my IMRF Bookshop: imrfbookshop(.)org. People can now pay by credit/debit card, Paypal (different plugin) and they can request an invoice and pay by bank transfer.
Owner's reply: Thanks a Million for your excellent review! This means a lot to me. And on a early Tuesday morning, you not only you made my day, but you made my whole week! Please accept my sincere gratitude for your feedback and for your trust in my services.
star starstarstarstar 
Functionality

I particularly liked that test and live config is entered once, and a radio button to switch between modes

Ease of use

Straight forward to setup in the backend and easy for customers to use on the frontend.

Support

Issues created by an upgrade to Virtuemart were dealt with in a timely manner by the developer.

Documentation

Good documentation library that uses screen shots to clearly show configurations

Value for money

Yes. There are different subscription options, depending on your requirements.

I used this to: Selling various items of merchandise for a sailing club through Virtuemart.
Owner's reply: Thank you so much Lee! I am very grateful for your review and support!

Easy

15 February 2019
star starstarstarhalf star 
Functionality

Covers all what I need

Ease of use

Very simple installation and very simple tu use it

Support

Excellent !

Documentation

Nearly good

Value for money

Sure !

Owner's reply: I am really thankful for your review on the JED ! Our Documentation has been improved now, also with the addition of Styling and CSS help. Soon it will be available in several languages!
star starstarstarstar 
Functionality

Excellent, very easy to integrate and works well with the OPC we use from Virtueplanet.

Ease of use

Customer simply sees a neat credit card form

Support

Excellent, fast and comprehensive

Documentation

Simple to follow

Value for money

Very competitively priced, license is simple - use on as many domains as you like

I used this to: Multiple ecommerce websites
Owner's reply: Thanks a million Sharkey Consulting! I am very appreciative of your support!
star starstarstarstar 
Functionality

Excellent - does everything we need

Ease of use

Very easy to use, configuration is easy

Support

Excellent - 200 out of 100 if I could :) Herve helped with any queries super quickly

Documentation

We didn't need to use it - the online help was perfect

Value for money

Excellent value, great extension for our needs

I used this to: Selling academic residential conferences
Owner's reply: Thanks a million David! I am very grateful for your appreciation!
star starstarstarstar 
Functionality

It works good and easy with OPC.

Ease of use

Very easy to install.

Support

I had a problem and it was solved fast.

Documentation

Enough

Value for money

good

I used this to: VM shop
Owner's reply: ¡Muchas gracias! I really appreciate your feedback!
star starstarstarstar 
Functionality

Works perfectly.

Ease of use

Very easy to use.

Support

Great support! There were some issues with the template we are using, but Hervé was very helpful and competent to find a solution!

Documentation
Value for money

Absolutely worth the money.

I used this to: An Italian online tea shop.
Owner's reply: Thank you very much for your great review, It means a lot to me!
star starstarstarstar 
Functionality

Functioned perfectly

Ease of use

Easy to use.

Support

Excellent support. Herve installed. Worked perfectly the first time.

Documentation

Easy to understand

Value for money

Worth more... great value.

I used this to: Our Shopping Cart Products on our Website
star starstarstarstar 

This plugin is great! At first I couldn't get it to work with my install of joomla and virtuemart--but the great tech support from Puma-it (Herve) did real right by me, helping me to quickly resolve the problem and get this up and working on my site. Thanks Herve for your great Code and keep up the great work!

Owner's reply: Thank you Sethtc for sharing your review on my plugin and support services! That is the first review, so I feel very proud. Serving our customers as best as we can is rewarding, I know it!