Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Change credit card types displayed in checkout
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  13 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Mark Ellison  
View profile  
 More options Jun 30 2011, 12:53 pm
From: Mark Ellison <markelli...@gmail.com>
Date: Thu, 30 Jun 2011 09:53:09 -0700 (PDT)
Local: Thurs, Jun 30 2011 12:53 pm
Subject: Change credit card types displayed in checkout
Hi Jason,

I'm using WP v3.0.1, YAK v2.3.2, tying to edit the card types shown on
my checkout screen over at http://thedublinreview.com/. I know it
wasn't straight forward to do this when I developed this site, but
what I believe I did was the following two things:

1) edit line 376 in yak-install.php to define which credit care types:

    yak_admin_options_set('yak_cc_types', array('visa',
'mastercard'));

2) comment out all the other credit card types defined in yak-
creditcard.php

static $cards = array (
    'visa'              => array ('name' => 'Visa',
                                  'length' => '13,16',
                                  'prefixes' => '4',
                                  'checkdigit' => true,
                                  'paypal-name' => 'Visa'
                                  ),
    'mastercard'        => array ('name' => 'MasterCard',
                                  'length' => '16',
                                  'prefixes' => '51,52,53,54,55',
                                  'checkdigit' => true,
                                  'paypal-name' => 'MasterCard'
                                  ),
/*    'laser'           => array ('name' => 'Laser',
                                  'length' => '16,17,18,19',
                                  'prefixes' => '6304,6706,6771,6709',
                                  'checkdigit' => true,
                                  ),
    'american express'  => array ('name' => 'American Express',
                                  'length' => '15',
                                  'prefixes' => '34,37',
                                  'checkdigit' => true,
                                  'paypal-name' => 'Amex'
                                  ),
                        array ('name' => 'Diners Club',
                               'length' => '14',
                               'prefixes' =>
'300,301,302,303,304,305,36,38',
                               'checkdigit' => true
                              ),
                        array ('name' => 'Carte Blanche',
                               'length' => '14',
                               'prefixes' =>
'300,301,302,303,304,305,36,38',
                               'checkdigit' => true
                              ),
                        array ('name' => 'Discover',
                               'length' => '16',
                               'prefixes' => '6011',
                               'checkdigit' => true
                              ),
                        array ('name' => 'JCB',
                               'length' => '15,16',
                               'prefixes' => '3,1800,2131',
                               'checkdigit' => true
                              ),
                        array ('name' => 'Discover',
                               'length' => '16',
                               'prefixes' => '6011',
                               'checkdigit' => true
                              ),
                        array ('name' => 'Enroute',
                               'length' => '15',
                               'prefixes' => '2014,2149',
                               'checkdigit' => true
                              )   */
                    );

This had the desired effect of making only Visa and Mastercard shown
on the checkout screen. But, now, I'd like to add the Laser credit
card. I added 'laser' to line 376 in yak-install.php and un-commented
the relevant portion of yak-creditcard.php, but it had no effect! Any
ideas?? I combed through the old manual that I purchased and can't
find any hints.

Also, I noticed that when I view the plugin files via the WordPress
dashboard plugin editor, it says "Editing yak-for-wordpress/yak-
install.php (inactive)" --- do you know why it says "inactive"?

I have also tried disabled and re-enabling the plugin after making my
edits, as I recall from the past that this was sometimes an issue. But
no effect still.

Any help is very much appreciated!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
3ds  
View profile  
 More options Jun 30 2011, 6:12 pm
From: 3ds <3dsignme...@gmail.com>
Date: Thu, 30 Jun 2011 15:12:15 -0700 (PDT)
Local: Thurs, Jun 30 2011 6:12 pm
Subject: Re: Change credit card types displayed in checkout
You should upgrade to Yak v3.0.2 in the admin under payments there is
the "Allowed credit card types" where you can simply select and add in
the card. I don't see the laser card there but you should be able to
read through the logic and add it in. :)

On Jun 30, 12:53 pm, Mark Ellison <markelli...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark Ellison  
View profile  
 More options Jun 30 2011, 6:22 pm
From: Mark Ellison <markelli...@gmail.com>
Date: Thu, 30 Jun 2011 18:22:31 -0400
Local: Thurs, Jun 30 2011 6:22 pm
Subject: Re: Change credit card types displayed in checkout

Really? Hmm.... Oh no :)
I'm just worried about upgrading from v2.3.2 to v3.0.2 because it sounds
like a big jump. I haven't touched this website for over a year and I don't
want to break any current functionality. It just makes me nervous because I
didn't keep up with all the updates and now it's a VERY significant update.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
3ds  
View profile  
 More options Jul 1 2011, 12:29 am
From: 3ds <3dsignme...@gmail.com>
Date: Thu, 30 Jun 2011 21:29:50 -0700 (PDT)
Local: Fri, Jul 1 2011 12:29 am
Subject: Re: Change credit card types displayed in checkout
Yah I totally understand that. Perhaps the creator of the plugin will
have more incite on this. Good luck!

On Jun 30, 6:22 pm, Mark Ellison <markelli...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jason Briggs  
View profile  
 More options Jul 1 2011, 4:43 pm
From: Jason Briggs <jasonrbri...@gmail.com>
Date: Fri, 1 Jul 2011 21:43:14 +0100
Local: Fri, Jul 1 2011 4:43 pm
Subject: Re: Change credit card types displayed in checkout
To be honest, I can't support the older versions.  In order to do so, I would need to maintain lots of different versions of WordPress, and would spend a lot of time keeping them going. It's just not feasible for a free plugin.  So your code changes look correct to me -- but I'm not really able to verify why it's not working.

On 1 Jul 2011, at 05:29, 3ds wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark Ellison  
View profile  
 More options Jul 1 2011, 6:30 pm
From: Mark Ellison <markelli...@gmail.com>
Date: Fri, 1 Jul 2011 18:30:12 -0400
Local: Fri, Jul 1 2011 6:30 pm
Subject: Re: Change credit card types displayed in checkout

Hrmm, yeah I understand. It's just frustrating because the manual, which I
paid for, doesn't even touch on this subject, and I can't find any other
discussion about this anywhere in this Google group. So to make a seemingly
trivial change of adding a credit card type, I'll need to upgrade the plugin
and probably purchase a new manual (I presume a new manual doesn't come free
to those who purchased one for v2.x).

On 1 Jul 2011 16:43, "Jason Briggs" <jasonrbri...@gmail.com> wrote:

> To be honest, I can't support the older versions. In order to do so, I

would need to maintain lots of different versions of WordPress, and would
spend a lot of time keeping them going. It's just not feasible for a free
plugin. So your code changes look correct to me -- but I'm not really able
to verify why it's not working.

"yak-discuss" group.
>> To post to this group, send email to yak-discuss@googlegroups.com.
>> To unsubscribe from this group, send email to

yak-discuss+unsubscribe@googlegroups.com.
>> For more options, visit this group at

http://groups.google.com/group/yak-discuss?hl=en.

> --
> You received this message because you are subscribed to the Google Groups

"yak-discuss" group.
> To post to this group, send email to yak-discuss@googlegroups.com.
> To unsubscribe from this group, send email to

yak-discuss+unsubscribe@googlegroups.com.
> For more options, visit this group at

http://groups.google.com/group/yak-discuss?hl=en.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jason Briggs  
View profile  
 More options Jul 1 2011, 6:48 pm
From: Jason Briggs <jasonrbri...@gmail.com>
Date: Fri, 1 Jul 2011 23:48:25 +0100
Local: Fri, Jul 1 2011 6:48 pm
Subject: Re: Change credit card types displayed in checkout

Updates to the manual are free in perpetuity to purchasers.  Or at least as long as I keep updating it.  You should've been receiving regular updates -- assuming you're still using the email address you purchased it with...

New version is coming out shortly.  Basically once WP3.2 comes out and I need to release the latest version of YAK.

On 1 Jul 2011, at 23:30, Mark Ellison wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark Ellison  
View profile  
 More options Jul 3 2011, 2:12 pm
From: Mark Ellison <markelli...@gmail.com>
Date: Sun, 3 Jul 2011 14:12:40 -0400
Local: Sun, Jul 3 2011 2:12 pm
Subject: Re: Change credit card types displayed in checkout

Okay, that's cool. I'm going to update to all the latest versions on a local
environment just to make sure all goes well. And that's for the updated
manual! I'll go grab it now as well.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
orange spot  
View profile  
 More options Jul 3 2011, 2:35 pm
From: orange spot <orangespot...@gmail.com>
Date: Sun, 3 Jul 2011 11:35:42 -0700
Local: Sun, Jul 3 2011 2:35 pm
Subject: Re: Change credit card types displayed in checkout

Jason,
I've purchased the manual and never got updates! I didn't even know there
WERE updates.
Can you send me the latest?  It would be really great.
Thanks,
Maria


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark Ellison  
View profile  
 More options Jul 3 2011, 2:40 pm
From: Mark Ellison <markelli...@gmail.com>
Date: Sun, 3 Jul 2011 14:40:19 -0400
Local: Sun, Jul 3 2011 2:40 pm
Subject: Re: Change credit card types displayed in checkout

You know, I just went to
http://www.briggs.net.nz/log/projects/yak-for-wordpress/handbook/ and there
aren't any updates to the handbook. Jason, are you planning on releasing a
handbook for v3.x of the plugin? (This is making the plugin update seem more
risky for me...)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark Ellison  
View profile  
 More options Jul 3 2011, 4:27 pm
From: Mark Ellison <markelli...@gmail.com>
Date: Sun, 3 Jul 2011 16:27:26 -0400
Local: Sun, Jul 3 2011 4:27 pm
Subject: Re: Change credit card types displayed in checkout

Crap... this is exactly what I feared. I did the update, on my local
environment, from YAK v2.3.2 to v3.0.2, and found that *it retained none of
my previous settings.* Good thing I didn't do this on the live website.

Also, I found that on v3.0.2, in the YAK > General Options > Payments
settings, under Manual Credit Card settings, the additional card I want to
allow (Laser) is not even included on this list. That's the very reason why
I opened this thread in the first place: to allow the Lase credit card.

Jason, is there any more support you can provide here? Otherwise I am stuck
both ways: stuck if I don't update to v3.0.2, b/c you can't support me with
the v2.3.2 query; and stuck if I do update to v3.0.2, b/c this latest
version does not seem to support Laser card anymore....

...

read more »


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jason Briggs  
View profile  
 More options Jul 3 2011, 6:39 pm
From: Jason Briggs <jasonrbri...@gmail.com>
Date: Sun, 3 Jul 2011 23:39:35 +0100
Local: Sun, Jul 3 2011 6:39 pm
Subject: Re: Change credit card types displayed in checkout

Probably something to do with the fact that you're upgrading through lots of versions. There's no reason why it should lose the settings, but with such a difference between the versions, it's difficult to know what's gone wrong.  Laser isn't included in the list because, being Irish only (I think), it's relatively obscure and there have never been any requests for it in the past.  I've taken the code snippet you've included and added it, so it'll appear in the next release.

By the way, I notice in your first mail you had the following:

>> >>>>> /* 'laser' => array ('name' => 'Laser',
>> >>>>> 'length' => '16,17,18,19',
>> >>>>> 'prefixes' => '6304,6706,6771,6709',
>> >>>>> 'checkdigit' => true,
>> >>>>> ),

You didn't have the /* in your actual code did you?  In which case, that would explain why it didn't work...

On 3 Jul 2011, at 21:27, Mark Ellison wrote:

...

read more »


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark Ellison  
View profile  
 More options Jul 3 2011, 7:13 pm
From: Mark Ellison <markelli...@gmail.com>
Date: Sun, 3 Jul 2011 19:13:44 -0400
Local: Sun, Jul 3 2011 7:13 pm
Subject: Re: Change credit card types displayed in checkout

Right. What I said before what that this is the code I used to originally *
hide* Laser. Now, I want Laser, so I uncommented this code. But Laser does
not re-appear.

...

read more »


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »