コード例 #1
0
 public ExternalAccount create(Map<String, Object> params, RequestOptions options)
     throws AuthenticationException, InvalidRequestException, APIConnectionException,
         CardException, APIException {
   String url = String.format("%s%s", Stripe.getApiBase(), this.getURL());
   return APIResource.request(
       APIResource.RequestMethod.POST, url, params, ExternalAccount.class, options);
 }
コード例 #2
0
 public ExternalAccount retrieve(String id, RequestOptions options)
     throws AuthenticationException, InvalidRequestException, APIConnectionException,
         CardException, APIException {
   String url = String.format("%s%s/%s", Stripe.getApiBase(), this.getURL(), id);
   return APIResource.request(
       APIResource.RequestMethod.GET, url, null, ExternalAccount.class, options);
 }