Package com.stripe.model

Examples of com.stripe.model.Transfer.cancel()


  }

  @Test(expected=InvalidRequestException.class)
  public void testTransferCancel() throws StripeException {
    Transfer createdTransfer = Transfer.create(getTransferParams());
    createdTransfer.cancel();

    // post-condition: we expect an InvalidRequestException here (caught by JUnit),
    // because in test mode, transfers are automatically sent
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.