Hey Josh, the same thing happened to me on a project within the last few
months.  The b means that it is a byte string, why that is, I'm not sure.

I ended up doing almost the same thing as you, I did:

u'%s/%s' % (data['card_expiry_month'], data['card_expiry_year'])


I'm not sure if forcing it to be a unicode string was necessary for me, but
at least at the time I thought it was.

On Tue, Nov 11, 2014 at 9:48 PM, Josh B <[email protected]>
wrote:

> Not sure if I have something configured wrong but when the expiration date
> is being sent to Auth.net it is prepended with the letter b. From what I
> have been able to track down its happening on this line
>     cartridge/shop/payment/authorizenet.py
>     'x_exp_date': (data['card_expiry_month'] + "/" +
> data['card_expiry_year']),
>
> if I change it to "%s/%s" % (data['card_expiry_month'],data[
> 'card_expiry_year']) it works.
>
> Thoughts?
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Mezzanine Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to