Skip to content

Instantly share code, notes, and snippets.

@vanjikumaran
Created December 10, 2014 15:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vanjikumaran/c7574441327e4927ed5a to your computer and use it in GitHub Desktop.
Save vanjikumaran/c7574441327e4927ed5a to your computer and use it in GitHub Desktop.
<api xmlns="http://ws.apache.org/ns/synapse" name="strip" context="/strip">
<resource methods="POST GET">
<inSequence>
<header name="Authorization" scope="transport" value="Bearer XXXXXXXXXXXXXXXXXXXXX"></header>
<property name="uri.var.chargeId" expression="json-eval($.chargeId)" scope="default" type="STRING"></property>
<payloadFactory media-type="json">
<format></format>
<args></args>
</payloadFactory>
<property name="ContentType" value="application/x-www-form-urlencoded" scope="axis2"></property>
<property name="messageType" value="application/x-www-form-urlencoded" scope="axis2"></property>
<property name="FORCE_POST_PUT_NOBODY" value="true" scope="axis2" type="BOOLEAN"></property>
<call>
<endpoint>
<address uri="https://api.stripe.com/v1/charges/{uri.var.chargeId}/refunds"></address>
</endpoint>
</call>
<respond></respond>
</inSequence>
</resource>
</api>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment