diff --git a/views/customers/payment.ctp b/views/customers/payment.ctp index def1d22..b3c2b88 100644 --- a/views/customers/payment.ctp +++ b/views/customers/payment.ctp @@ -86,7 +86,12 @@ echo $form->create(null, array('id' => 'payment-form', 'action' => 'payment')); // $.ajax options can be used here too, for example: //timeout: 3000 }; - + + // Get a clean slate for our payments + $('#payments').html(''); + $('#payment-id').val(1); + addPaymentSource(false); + // bind form using 'ajaxForm' $('#payment-form').ajaxForm(options); }); @@ -146,12 +151,11 @@ echo $form->create(null, array('id' => 'payment-form', 'action' => 'payment')); ?> '' + - '