2012-06-28 55 views
1

我正在使用c#編寫asp.net web應用程序。我正在嘗試使用信用卡交易和訂閱的條紋API。我遵循條紋官方網站上提供的文檔以及github上的示例項目XamarinStripe。現在我試圖取消特定客戶的訂閱,但我無法使用Xamarin dll完成它。請指導我。如何取消條帶訂閱

回答

1

有關於Stripe's website的說明。

至於如何使用XamarinStripe,單元測試程序集has an example做到這一點:

static StripeSubscription TestDeleteSubscription (StripeCustomer customer, StripePayment payment) 
{ 
    StripeSubscription sub = payment.Unsubscribe (customer.ID, true); 
    return sub; 
} 
+0

感謝您的答覆。我想取消訂閱使用xamarin.dll文件中存在的類,如stripesubscription,stripepayment等寫在C#中,但我無法實現取消訂閱。 –

+0

@ user999689我找到了一個例子。看我的編輯。 –