示例#1
0
        public void StoredCredential_ReceiptIn()
        {
            RecurringPaymentMethod storedCard = new RecurringPaymentMethod("03e28f0e-492e-80bd-20ec318e9334", "3c4af936-483e-a393-f558bec2fb2a");

            StoredCredential storedCredential = new StoredCredential {
                Type      = StoredCredentialType.Recurring,
                Initiator = StoredCredentialInitiator.Merchant,
                Sequence  = StoredCredentialSequence.Subsequent
            };

            Transaction response = storedCard.Authorize(15.15m)
                                   .WithCurrency("USD")
                                   .WithAllowDuplicates(true)
                                   .WithStoredCredential(storedCredential)
                                   .Execute();

            Assert.IsNotNull(response);
            Assert.AreEqual("00", response.ResponseCode);
            Assert.IsNotNull(response.SchemeId);
        }