{"_id":"570c22e4e5f8280e006b1a0b","__v":3,"project":"55dd0853d2d97337001800e2","githubsync":"","user":"55f84b99a3271b0d00498d16","version":{"_id":"55de36ec9067202b00de0015","__v":33,"project":"55dd0853d2d97337001800e2","createdAt":"2015-08-26T22:00:12.384Z","releaseDate":"2015-08-26T22:00:12.383Z","categories":["55de36ed9067202b00de0016","55de36ed9067202b00de0017","55de36ed9067202b00de0018","55df7dcd437b3f0d004ba204","55e4e014177b6e0d00333141","55e4e01fe252ac0d00303a99","55e4e05240cda60d003bad67","55e4e070177b6e0d00333142","55e4e0753325e60d007fbee6","55e4e0803325e60d007fbee7","55e4e086177b6e0d00333143","55e4e0a1177b6e0d00333144","55e4e0aa3325e60d007fbee8","55e4e0b140cda60d003bad6b","55e4e0bae252ac0d00303a9d","55e4e0c5177b6e0d00333145","55e4e0ee3325e60d007fbeea","55e4e0fae252ac0d00303a9e","55e4e100177b6e0d00333147","55f85c8ba3271b0d00498d55","56092e1ac5cff70d007d0131","564b64a3ee12850d0095866e","564b64b5791099170071e9ea","565cd0bfd18ae50d007183d8","565f5f5d6bafd40d0030a063","565f790d6bafd40d0030a09f","56611c464851190d003f9f5d","56637d5b7988ab0d00d0522e","56637d687988ab0d00d0522f","567835df6928b40d009dd650","56e59c043c29b117008dae5b","5704013559c5190e000ab646","572be252de40590e00026934","58af1bf6ebd7370f0078ba09","5cdad81d912ece0039e9a939"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"3.0.0","version":"3.0"},"category":{"_id":"55e4e0aa3325e60d007fbee8","pages":["55e5f1059416190d00dc3a49","55e9fe81c584fb2300291dcf","55e9feaab44f7b1700e4527b","55e9fef4c584fb2300291dd1","56093fe48aedf50d0004d01e","5609409b6d8c440d000c7a73","5609411a8aedf50d0004d020","5641517d25f31f0d00ae7997","565d2cc52206890d00ba0578","56e889c6ce05a20e0010f7f7"],"version":"55de36ec9067202b00de0015","__v":10,"project":"55dd0853d2d97337001800e2","sync":{"url":"","isSync":false},"reference":true,"createdAt":"2015-08-31T23:18:02.019Z","from_sync":false,"order":11,"slug":"payments","title":"Payments"},"parentDoc":null,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-04-11T22:19:16.403Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":true,"order":6,"body":"You can charge a fund more than once by using our [Create a payment](doc:create-payment) endpoint.\n[block:callout]\n{\n  \"type\": \"warning\",\n  \"title\": \"What is a fund?\",\n  \"body\": \"A PayStand [Card](doc:the-card-resource) or PayStand [Bank](doc:the-bank-resource) object is a fund.\"\n}\n[/block]\n\n[block:callout]\n{\n  \"type\": \"danger\",\n  \"title\": \"Not available for everyone\",\n  \"body\": \"This feature is not enabled by default. Please contact PayStand Customer Support if this is something that you are interested in.\"\n}\n[/block]\n\n[block:callout]\n{\n  \"type\": \"info\",\n  \"title\": \"Authorization\",\n  \"body\": \"The user or application provided must have access to act on behalf of the customer. This customer must have access to the authenticated payments endpoint. This customer also needs to be the owner of the PayStand Card or Bank that the cardId or bankId points to.\"\n}\n[/block]\n\n[block:callout]\n{\n  \"type\": \"success\",\n  \"title\": \"Where do I get a fund Id from?\",\n  \"body\": \"* [Retrieve a card](doc:retrieve-card) \\n* [Retrieve a bank](doc:retrieve-bank) \\n* [Retrieve a payment](doc:retrieve-payment) - The Id of the fund will be found as sourceId. The type of the fund (\\\"Card\\\" or \\\"Bank) will be found as sourceType.\"\n}\n[/block]\n\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"https://api.paystand.co/v3/payments/secure\",\n      \"language\": \"html\",\n      \"name\": \"Definition\"\n    }\n  ],\n  \"sidebar\": true\n}\n[/block]\n\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n  \\\"Authorization\\\": \\\"Bearer 8xwEjewopIwfzWp28ai6VnqNJEEr2Gow\\\",\\n  \\\"X-CUSTOMER-ID\\\": \\\"925a77c119c741439592c23d\\\",\\n  \\\"Accept\\\": \\\"application/json\\\",\\n  \\\"Content-Type\\\": \\\"application/json\\\"\\n}\",\n      \"language\": \"json\",\n      \"name\": \"Headers\"\n    }\n  ],\n  \"sidebar\": true\n}\n[/block]\n\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n  \\\"amount\\\": \\\"20.37\\\",\\n  \\\"currency\\\": \\\"USD\\\",\\n  \\\"cardId\\\": \\\"c80557f206de4d76a29856\\\",\\n  \\\"description\\\": \\\"Authenticated payment using cardId\\\",\\n  \\\"billingAddress\\\": {\\n    \\\"name\\\": \\\"Jessica Lin\\\",\\n    \\\"street1\\\": \\\"123 test st\\\",\\n    \\\"street2\\\": \\\"3g\\\",\\n    \\\"city\\\": \\\"santa cruz\\\",\\n    \\\"state\\\": \\\"CA\\\",\\n    \\\"postalCode\\\": \\\"95060-55\\\",\\n    \\\"country\\\": \\\"USA\\\"\\n  },\\n  \\\"personalContact\\\": {\\n    \\\"email\\\": \\\"jessica.lin:::at:::paystand.com\\n  },\\n  \\\"meta\\\": {\\n  \\t\\\"recharge\\\": \\\"card\\\"\\n  }\\n}\",\n      \"language\": \"json\",\n      \"name\": \"Request (cardId)\"\n    },\n    {\n      \"code\": \"{\\n  \\\"amount\\\": \\\"20.37\\\",\\n  \\\"currency\\\": \\\"USD\\\",\\n  \\\"bankId\\\": \\\"c80557f206de4d76a29856\\\",\\n  \\\"description\\\": \\\"Authenticated payment using bankId\\\",\\n  \\\"billingAddress\\\": {\\n    \\\"name\\\": \\\"Jessica Lin\\\",\\n    \\\"street1\\\": \\\"123 test st\\\",\\n    \\\"street2\\\": \\\"3g\\\",\\n    \\\"city\\\": \\\"santa cruz\\\",\\n    \\\"state\\\": \\\"CA\\\",\\n    \\\"postalCode\\\": \\\"95060-55\\\",\\n    \\\"country\\\": \\\"USA\\\"\\n  },\\n  \\\"personalContact\\\": {\\n    \\\"email\\\": \\\"jessica.lin@paystand.com\\n  },\\n  \\\"meta\\\": {\\n  \\t\\\"recharge\\\": \\\"bank\\\"\\n  }\\n}\",\n      \"language\": \"json\",\n      \"name\": \"Request (bankId)\"\n    }\n  ],\n  \"sidebar\": true\n}\n[/block]","excerpt":"Create a payment using a PayStand fund","slug":"recharging-funds","type":"basic","title":"Recharging Funds"}

Recharging Funds

Create a payment using a PayStand fund

You can charge a fund more than once by using our [Create a payment](doc:create-payment) endpoint. [block:callout] { "type": "warning", "title": "What is a fund?", "body": "A PayStand [Card](doc:the-card-resource) or PayStand [Bank](doc:the-bank-resource) object is a fund." } [/block] [block:callout] { "type": "danger", "title": "Not available for everyone", "body": "This feature is not enabled by default. Please contact PayStand Customer Support if this is something that you are interested in." } [/block] [block:callout] { "type": "info", "title": "Authorization", "body": "The user or application provided must have access to act on behalf of the customer. This customer must have access to the authenticated payments endpoint. This customer also needs to be the owner of the PayStand Card or Bank that the cardId or bankId points to." } [/block] [block:callout] { "type": "success", "title": "Where do I get a fund Id from?", "body": "* [Retrieve a card](doc:retrieve-card) \n* [Retrieve a bank](doc:retrieve-bank) \n* [Retrieve a payment](doc:retrieve-payment) - The Id of the fund will be found as sourceId. The type of the fund (\"Card\" or \"Bank) will be found as sourceType." } [/block] [block:code] { "codes": [ { "code": "https://api.paystand.co/v3/payments/secure", "language": "html", "name": "Definition" } ], "sidebar": true } [/block] [block:code] { "codes": [ { "code": "{\n \"Authorization\": \"Bearer 8xwEjewopIwfzWp28ai6VnqNJEEr2Gow\",\n \"X-CUSTOMER-ID\": \"925a77c119c741439592c23d\",\n \"Accept\": \"application/json\",\n \"Content-Type\": \"application/json\"\n}", "language": "json", "name": "Headers" } ], "sidebar": true } [/block] [block:code] { "codes": [ { "code": "{\n \"amount\": \"20.37\",\n \"currency\": \"USD\",\n \"cardId\": \"c80557f206de4d76a29856\",\n \"description\": \"Authenticated payment using cardId\",\n \"billingAddress\": {\n \"name\": \"Jessica Lin\",\n \"street1\": \"123 test st\",\n \"street2\": \"3g\",\n \"city\": \"santa cruz\",\n \"state\": \"CA\",\n \"postalCode\": \"95060-55\",\n \"country\": \"USA\"\n },\n \"personalContact\": {\n \"email\": \"jessica.lin@paystand.com\n },\n \"meta\": {\n \t\"recharge\": \"card\"\n }\n}", "language": "json", "name": "Request (cardId)" }, { "code": "{\n \"amount\": \"20.37\",\n \"currency\": \"USD\",\n \"bankId\": \"c80557f206de4d76a29856\",\n \"description\": \"Authenticated payment using bankId\",\n \"billingAddress\": {\n \"name\": \"Jessica Lin\",\n \"street1\": \"123 test st\",\n \"street2\": \"3g\",\n \"city\": \"santa cruz\",\n \"state\": \"CA\",\n \"postalCode\": \"95060-55\",\n \"country\": \"USA\"\n },\n \"personalContact\": {\n \"email\": \"jessica.lin@paystand.com\n },\n \"meta\": {\n \t\"recharge\": \"bank\"\n }\n}", "language": "json", "name": "Request (bankId)" } ], "sidebar": true } [/block]