-
Notifications
You must be signed in to change notification settings - Fork 0
/
4d7d412f.00ba5f5a.js
1 lines (1 loc) · 6.15 KB
/
4d7d412f.00ba5f5a.js
1
(window.webpackJsonp=window.webpackJsonp||[]).push([[49],{150:function(e,t,n){"use strict";n.r(t),n.d(t,"frontMatter",(function(){return i})),n.d(t,"metadata",(function(){return c})),n.d(t,"rightToc",(function(){return s})),n.d(t,"default",(function(){return u}));var a=n(2),r=n(6),o=(n(0),n(250)),i={id:"ComoFunciona",title:"Como funciona",hide_title:!0,sidebar_label:"How it works"},c={id:"Assinaturas/ComoFunciona",isDocsHomePage:!1,title:"Como funciona",description:"How it works",source:"@site/docs\\Assinaturas\\ComoFunciona.md",permalink:"/documentation/docs/Assinaturas/ComoFunciona",sidebar_label:"How it works",sidebar:"someSidebar",previous:{title:"Introdu\xe7\xe3o",permalink:"/documentation/docs/Assinaturas/Introducao"},next:{title:"Criando assinaturas",permalink:"/documentation/docs/Assinaturas/CriandoAssinatura"}},s=[],l={rightToc:s};function u(e){var t=e.components,n=Object(r.a)(e,["components"]);return Object(o.b)("wrapper",Object(a.a)({},l,n,{components:t,mdxType:"MDXLayout"}),Object(o.b)("h1",{className:"titulo"},"How it works"),Object(o.b)("div",{className:"subtitulo"},Object(o.b)("p",null,"A subscription is created with status ",Object(o.b)("code",null,"new"),". As soon as the payment method is defined, the status changes to ",Object(o.b)("code",null,"active"),", that is, the subscription is active, being like this throughout all the charge creation cycle."),Object(o.b)("p",null,"A subscription is no longer active only in the following situations: "),Object(o.b)("ul",null,Object(o.b)("li",{parentName:"ul"},Object(o.b)("p",{parentName:"li"},"The payer canceled the service by clicking on the unsubscribe link present in the subscription confirmation email. Thus, the status is changed to ",Object(o.b)("code",null,"canceled"),";")),Object(o.b)("li",{parentName:"ul"},Object(o.b)("p",{parentName:"li"},"The seller canceled the service by clicking on the unsubscribe link present in their receipts interface, or using the cancellation ",Object(o.b)("em",{parentName:"p"},"webservice")," through the endpoint ",Object(o.b)("code",null,"/subscription/cancel")," or function ",Object(o.b)("code",null,"cancelSubscription")," from the SDK. Thus, the status is changed to ",Object(o.b)("code",null,"canceled"),";")),Object(o.b)("li",{parentName:"ul"},Object(o.b)("p",{parentName:"li"},"All charges have already been generated. Thus, the status is changed to ",Object(o.b)("code",null,"expired"),", that is the subscription is expired and all charges configured for the subscription have already been issued."))),Object(o.b)("p",null,"To follow up on the subscription, it is necessary to be aware of the status of the generated transactions. When it is not possible to confirm the payment of a transaction, the status becomes ",Object(o.b)("code",null,"unpaid"),", that is, it was not possible to confirm the payment of the charge. In this situation, the seller must take the action he judges pertinent, such as, for example, interrupting the service offering, charging this payment in another way or canceling the subscription."),Object(o.b)("p",null,"The two payment methods available are: ",Object(o.b)("a",Object(a.a)({parentName:"p"},{href:"/documentation/docs/PagamentoBoleto/GerarBoleto"}),"boleto")," and ",Object(o.b)("a",Object(a.a)({parentName:"p"},{href:"/documentation/docs/PagamentoCartao/PagamentoCartao"}),"card"),". In the first one, the ticket is generated according to the number of repetitions defined by the plan, and can also be sent to the customer's email. In the second, the charge is automatically debited from the customer's card, also according to plan repetitions."),Object(o.b)("p",null,"The subscriber or seller can unsubscribe at any time. When this occurs, the two are notified via email, with all the details of the cancellation. "),Object(o.b)("h1",{id:"subscription-status-table"},"Subscription status table"),Object(o.b)("p",null,"If you want, access the ",Object(o.b)("a",Object(a.a)({parentName:"p"},{href:"../VisaoGeral/statusTransacoes"}),"complete table")," with the possible status of subscriptions. ")))}u.isMDXComponent=!0},250:function(e,t,n){"use strict";n.d(t,"a",(function(){return b})),n.d(t,"b",(function(){return d}));var a=n(0),r=n.n(a);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},o=Object.keys(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var l=r.a.createContext({}),u=function(e){var t=r.a.useContext(l),n=t;return e&&(n="function"==typeof e?e(t):c(c({},t),e)),n},b=function(e){var t=u(e.components);return r.a.createElement(l.Provider,{value:t},e.children)},p={inlineCode:"code",wrapper:function(e){var t=e.children;return r.a.createElement(r.a.Fragment,{},t)}},h=r.a.forwardRef((function(e,t){var n=e.components,a=e.mdxType,o=e.originalType,i=e.parentName,l=s(e,["components","mdxType","originalType","parentName"]),b=u(n),h=a,d=b["".concat(i,".").concat(h)]||b[h]||p[h]||o;return n?r.a.createElement(d,c(c({ref:t},l),{},{components:n})):r.a.createElement(d,c({ref:t},l))}));function d(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=n.length,i=new Array(o);i[0]=h;var c={};for(var s in t)hasOwnProperty.call(t,s)&&(c[s]=t[s]);c.originalType=e,c.mdxType="string"==typeof e?e:a,i[1]=c;for(var l=2;l<o;l++)i[l]=n[l];return r.a.createElement.apply(null,i)}return r.a.createElement.apply(null,n)}h.displayName="MDXCreateElement"}}]);