Did I find the right examples for you? yes no

All Samples(10)  |  Call(7)  |  Derive(0)  |  Import(3)
Reifier of a credit card schema object.

src/p/a/PayPy-0.6/tests/test_subscription.py   PayPy(Download)
from paypy.subscription import Subscription
 
from paypy.schemas.payment      import SCreditCard
from paypy.schemas.billing      import SBilling
from paypy.schemas.authnet      import SMerchantAuthentication
    def test_authnet_arb(self):
        """Test the authorize.net ARB adapter."""
 
        cc            = SCreditCard()
        cc.number     = u'4111111111111111'
 
        # Update
        cc            = SCreditCard()
        cc.number     = u'4111111111111111'
        cc.expiration = datetime.datetime.strptime('2018-04-01', '%Y-%m-%d')
    def test_authnet_arb_trial(self):
        cc            = SCreditCard()
        cc.number     = u'4111111111111111'
        cc.expiration = datetime.datetime.strptime('2014-04-01', '%Y-%m-%d')
 

src/p/a/PayPy-0.6/tests/test_profile.py   PayPy(Download)
from paypy.profile import Profile
 
from paypy.schemas.payment      import SCreditCard, SBank
from paypy.schemas.shipping     import SShipping
from paypy.schemas.billing      import SBilling
        auth.login = u'auth_login'
 
        cc1            = SCreditCard()
        cc1.number     = u'4111111111111111'
        cc1.expiration = datetime.datetime.strptime('2014-04-01', '%Y-%m-%d')
        bill.phone       = u'(383) 993-1392'
 
        cc               = SCreditCard()
        cc.number        = u'4111111111111111'
        cc.expiration    = datetime.datetime.strptime('2018-04-01', '%Y-%m-%d')
 
        # Update billing
        cc1            = SCreditCard()
        cc1.number     = u'4111111111111111'
        cc1.expiration = datetime.datetime.strptime('2020-04-01', '%Y-%m-%d')

src/p/a/PayPy-0.6/tests/test_payment.py   PayPy(Download)
import datetime
 
from unittest                   import TestCase
from paypy.payment              import Payment
from paypy.schemas.payment      import SCreditCard
    def test_authnet_aim(self):
        """Test the authorize.net AIM adapter."""
 
        cc            = SCreditCard()
        cc.number     = u'4111111111111111'