private int AddPayMethod() { var request = new StorePayMethodToken { CustomerId = 1, Token = "cus_5tSkoQ6mDrXOMQ", Type = "customer", }; return(Sut.StorePayMethodToken(request).Id); }
public void should_call_StorePayMethodToken() { //arrange var request = new StorePayMethodToken { CustomerId = 1, Token = "cus_5tSkoQ6mDrXOMQ", Type = "customer", }; //act var actual = Sut.StorePayMethodToken(request); //assert Assert.AreEqual(201, actual.Code); Assert.IsEmpty(actual.Message); Assert.AreEqual("OK", actual.Status); }
/// <summary> /// Store a pay method token /// details: https://developer.chargeover.com/apidocs/rest/#create-tokenized /// </summary> public IIdentityResponse StorePayMethodToken(StorePayMethodToken request) { return(Create("tokenized", request)); }