- Timestamp:
- 12 Jan 2015, 14:33:22 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/trunk/src/waeup/ikoba/payments/paypal.py
r12326 r12453 1139 1139 return site['creditcards'].get(payer_id, None) 1140 1140 1141 def store_credit_card(self, paypal_credit_card): 1142 """Store `paypal_credit_card` in vault. 1143 1144 Returns a credit card token in case of success. 1145 1146 `paypal_credit_card` must provide `ICreditCard`. The credit 1147 card created is stored at PayPal and gets a token stored 1148 locally. 1149 1150 If no `creditcards` are available in local site, we create a 1151 container. 1152 """ 1153 site = grok.getSite() 1154 if not 'creditcards' in site: 1155 site['creditcards'] = grok.Container() 1156 return 1157 1141 1158 def create_payment(self, payer, payment_item, payee=None): 1142 1159 if not IPayer.providedBy(payer):
Note: See TracChangeset for help on using the changeset viewer.