Forum Replies Created
Viewing 2 posts - 1 through 2 (of 2 total)
-
AuthorPosts
-
swcp
ParticipantAlso, I made a change to merchant.php to keep the CVV code from getting lost between page refreshes:
Here’s a diff
*** merchant.php.original 2013-09-21 13:06:35.549600000 -0600 --- merchant.php 2013-09-21 13:07:04.895600000 -0600 *************** *** 131,136 **** --- 131,138 ---- $card_type = $_POST['card_type']; if( isset( $_POST['card_name'] ) ) $card_name = $_POST['card_name']; + if( isset( $_POST['card_code'] ) ) + $card_cvv = $_POST['card_code']; switch( $number_format ) { case '0': *************** *** 330,336 **** <label for="wpsc_oc_card_code">' . $label_cvv . ' <span class="asterix">*</span></label> </td> <td class="wpsc_pppro_cc_code2"> ! <input type="text" id="wpsc_oc_card_code" name="card_code" value="" size="4" maxlength="4" class="required" /> </td> </tr>'; } else { --- 332,338 ---- <label for="wpsc_oc_card_code">' . $label_cvv . ' <span class="asterix">*</span></label> </td> <td class="wpsc_pppro_cc_code2"> ! <input type="text" id="wpsc_oc_card_code" name="card_code" value="' . $card_cvv . '" size="4" maxlength="4" class="required" /> </td> </tr>'; } else {
swcpParticipantWhile troubleshooting this, I noticed that the OCCP plugin uses different form
field names than WPEC does for the credit card data. E.g. card_number_[1-4]
instead of card_number[1-4],card_type instead of cctype.Is this intentional? Knowing that would help me further understand how they
are interracting.Thank you,
Mark
-
AuthorPosts
Viewing 2 posts - 1 through 2 (of 2 total)