Skip to content

Commit

Permalink
fix: remove legacy template (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
djejaquino authored Jan 5, 2023
1 parent 6cbd9c1 commit c0297bd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions docs/blueprints/cards/collect-and-process-cards.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -221,10 +221,10 @@ Add the following code to your API, replacing `PRIVATE_API_KEY` with the API Key
const { data } = await axios.post(
'https://api.basistheory.com/proxy',
{
card_number: `{%raw%}{{ ${cardTokenId} | json: '$.number' }}{%endraw%}`,
exp_month: `{%raw%}{{ ${cardTokenId} | json: '$.expiration_month' | to_number }}{%endraw%}`,
exp_year: `{%raw%}{{ ${cardTokenId} | json: '$.expiration_year' | to_number }}{%endraw%}`,
cvc: `{%raw%}{{ ${cardTokenId} | json: '$.cvc' }}{%endraw%}`
card_number: `{{ ${cardTokenId} | json: '$.number' }}`,
exp_month: `{{ ${cardTokenId} | json: '$.expiration_month' | to_number }}`,
exp_year: `{{ ${cardTokenId} | json: '$.expiration_year' | to_number }}`,
cvc: `{{ ${cardTokenId} | json: '$.cvc' }}`
},
{
headers: {
Expand Down
2 changes: 1 addition & 1 deletion docs/concepts/what-is-the-proxy.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ curl "https://api.basistheory.com/proxy" \
-H "Content-Type: application/json" \
-X "POST" \
-d '{
"sensitive": "{%raw%}{{e51b0ff4-aa80-407a-b628-3909c26ff397}}{%endraw%}",
"sensitive": "{{e51b0ff4-aa80-407a-b628-3909c26ff397}}",
"nonSensitive": "plaintext data can go here"
}'
```
Expand Down

1 comment on commit c0297bd

@vercel
Copy link

@vercel vercel bot commented on c0297bd Jan 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.