Working With the Credit Cards Web Part
The Credit Cards Web Part lists the saved credit card profile records associated to the current shopper.
Web Part
Each record has a label to show which credit card is the default payment (a shopper can have only one default payment), and a link to edit the credit card record is displayed. This link brings the shopper to an Edit page. There is also a link to remove a saved credit card record, and the shopper is prompted with a confirmation message before deleting the credit card (this is optional, site designers can set a property whether to confirm deletion).
Shoppers can add new credit card records by clicking the Add New Credit Card button that redirects the shopper to the Credit Cards page in Add mode.
Property Sheet
The following figure shows the Credit Cards Web Part property sheet. The Credit Cards Web Part property sheet lets site designers control some aspects of the Web Part's behavior and appearance. The property sheet is displayed by selecting the edit option on the Web Page (in Edit Page mode) and then selecting Modify Shared Web Part. This displays the property sheet. Expand the sections to see the relevant properties.
Properties
The following table lists and describes the properties for the Credit Cards Web Part.
Property |
Maps to |
Type |
Description |
Default |
---|---|---|---|---|
"Action" URL parameter |
ActionQueryParameter |
String |
Sets the name of the "action" parameter to use when creating URL queries to the "credit card detail" page. This setting must specify the same name expected by the destination page. |
act |
Display "Back" button |
AllowBackUrlButton |
Boolean |
If checked, a "back" button is displayed which lets the user return to a previous page. |
False |
"Billing address" section title text |
BillingAddressHeaderLabelText |
String |
Sets the text displayed above the "billing address" section. |
ProfileResources.CreditCardListBillingAddressHeaderLabelText |
"Add new credit card" button text |
ButtonAddNewCreditCardText |
String |
Sets the text displayed on the "add new credit card" button. |
Add Credit Card |
"Back" button text |
ButtonBackText |
String |
Sets the text displayed on the "back" button. |
Back to |
"Edit" button text |
ButtonEditText |
String |
Sets the text displayed on the "edit" button |
Edit |
"Remove" button text |
ButtonRemoveText |
String |
Sets the text displayed on the "remove" button. |
Delete |
"Credit card number" column header text |
CCNumberHeaderLabelText |
String |
Sets the text displayed at the top of the "credit card number" column. |
Number |
"Credit card type" column header text |
CCTypeHeaderLabelText |
String |
Sets the text displayed at the top of the "credit card type" column. |
Type |
Use "delete confirmation" pop-up |
ConfirmDeletion |
Boolean |
If checked, causes a pop-up to be displayed asking the user to confirm the deletion. You can configure the text displayed using the ' "Delete confirmation" pop-up text' field. |
True |
"Credit Card Detail" page URL |
CreditCardDetailUrl |
String |
Sets the page URL to redirect to in order to view or edit credit card details. |
ProfileResources.CreditCardDetailUrl |
"Credit card id" URL parameter |
CreditCardIdQueryParameter |
String |
Sets the name of the "card id" parameter to use when creating URL queries to the "credit card detail" page. This setting must specify the same name expected by the destination page. |
card |
"Credit card list" section title text |
CreditCardListHeader |
String |
Sets the text displayed before the "credit card list" |
My Credit Cards |
CSS class |
CssClass |
String |
Sets the style sheet "class" name used when outputting the HTML markup of this web part. |
Blank |
"Default credit card" label text |
DefaultCreditCardLabelText |
String |
Sets the text displayed on the credit card profile to indicate that it is the "default credit card". |
Default Credit Card |
"Delete confirmation" pop-up text |
DeleteConfirmationMessage |
String |
Sets the text displayed on the delete confirmation pop-up. |
Confirm Credit Card Deletion |
Instructional text |
InstructionText |
String |
Sets the text displayed above the credit card section. Can be used to provide instructions to end users. |
Add a new credit card to your account below. |
"Remove" link button image Url |
RemoveLinkButtonImageUrl |
String |
Sets the URL of the image to use as a "remove" button. |
Blank |