-
Notifications
You must be signed in to change notification settings - Fork 7
Home
rpedigoni edited this page Oct 27, 2010
·
10 revisions
Como usar
from pyrcws import PaymentAttempt
params = {
'affiliation_id': '123456789',
'total': Decimal('0.01'),
'order_id': '763AH1', # strings are allowed here
'card_number': '1234567890123456',
'cvc2': 423,
'exp_month': 1,
'exp_year': 2010,
'card_holders_name': 'JOAO DA SILVA',
'installments': 1,
}
attempt = PaymentAttempt(**self.data)
transaction = attempt.get_authorized()
if transaction:
transaction.capture()