1
我在Stripe Api找到了找回所有發票的方法。但是,它不顯示如何通過JavaScript檢索它們。Stripe API - 使用Javascript檢索所有收據(發票)
我已經做了類似的創建付款,它的迴應是收據本身。
if ($scope.card.error == "" && $scope.card.cvc_error == "" && $scope.card.cardType != "Unrecognizable card type") {
return stripe.card.createToken({
number: $scope.card.number,
cvc: $scope.card.cvc,
exp_month: $scope.card.exp_month,
exp_year: $scope.card.exp_year
}).then(function (response) {
//Todo connect to api
console.log(response)
}).then(function (res) {
$scope.successAlert();
})
} else {
$scope.errorAlert(validationArray);
}
我正在使用角度。
@ywin舉一個例子..感謝提前。 –