Changed payment.key to payment.reference_number