corrected the message in PurchaseOrderRest

the if block should send success message and the else block should send
creditCardError message