Added the connecting code to purchase a card and complete the transaction.