Files
portal_v3/admin/playground/client/general/payments/script.js
equippedcoding-master e2c98790b2 initial commit
2025-09-17 09:37:06 -05:00

2123 lines
54 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(function(){
// Decode
$("#submit_encode").on("click",function(e){
e.preventDefault();
// const value = JSON.parse($("#data_input_textarea").val().trim());
// if(value==""){alert("Please add text");return;}
// $("#data_output_textarea").val("");
let stripeManager = new AFSSdk.StripeManager();
console.log(stripeManager);
stripeManager.getSubscription(obj123);
// let data = {
// direct_payment: value.direct_payment,
// customer_id: value.transactions.stripe.customer.id,
// subscription_id: value.transactions.stripe.subscription.id
// }
// let url1 = "https://www.appfactory.studio/portal/admin/core/api/php/includes/services/payments/stripe/stripe_payments.php";
// let url2 = "request.php";
// $.post(url1,{
// "get_customer": true,
// "data": JSON.stringify(data)
// },function(resp){
// resp = JSON.parse(resp);
// console.log(resp);
// $("#data_output_textarea").val(JSON.stringify(resp.data));
// });
});
// w6zmaeei5kqza2lldzbhgcsv
// w1zmaeei5kqza2lldzbhgcsv
// cradle2careertxorg
// https://jsoneditoronline.org/#left=local.pewama
let obj123 = {
"label_price": 15,
"transactions": {
"stripe": {
"price": {
"id": "price_1S30v9JTsOSWtcD758Fc2uCA",
"object": "price",
"active": true,
"billing_scheme": "per_unit",
"created": 1756845315,
"currency": "usd",
"custom_unit_amount": null,
"livemode": false,
"lookup_key": "pro_v2",
"metadata": [],
"nickname": null,
"product": "prod_Syysk4pULEkaGB",
"recurring": {
"aggregate_usage": null,
"interval": "month",
"interval_count": 1,
"meter": null,
"trial_period_days": null,
"usage_type": "licensed"
},
"tax_behavior": "unspecified",
"tiers_mode": null,
"transform_quantity": null,
"type": "recurring",
"unit_amount": 1500,
"unit_amount_decimal": "1500"
},
"customer": {
"id": "cus_T2mQVSq1at0LoF",
"object": "customer",
"address": null,
"balance": 0,
"created": 1757721523,
"currency": null,
"default_source": null,
"delinquent": false,
"description": null,
"discount": null,
"email": "james2@appfactory.studio",
"invoice_prefix": "28VRJJXM",
"invoice_settings": {
"custom_fields": null,
"default_payment_method": null,
"footer": null,
"rendering_options": null
},
"livemode": false,
"metadata": [],
"name": null,
"next_invoice_sequence": 1,
"phone": null,
"preferred_locales": [],
"shipping": null,
"tax_exempt": "none",
"test_clock": null
},
"subscription": {
"id": "sub_1S6grXJTsOSWtcD7Dy50xAvA",
"object": "subscription",
"application": null,
"application_fee_percent": null,
"automatic_tax": {
"disabled_reason": null,
"enabled": false,
"liability": null
},
"billing_cycle_anchor": 1757721523,
"billing_cycle_anchor_config": null,
"billing_mode": {
"type": "classic"
},
"billing_thresholds": null,
"cancel_at": null,
"cancel_at_period_end": false,
"canceled_at": null,
"cancellation_details": {
"comment": null,
"feedback": null,
"reason": null
},
"collection_method": "charge_automatically",
"created": 1757721523,
"currency": "usd",
"current_period_end": 1760313523,
"current_period_start": 1757721523,
"customer": "cus_T2mQVSq1at0LoF",
"days_until_due": null,
"default_payment_method": null,
"default_source": null,
"default_tax_rates": [],
"description": null,
"discount": null,
"discounts": [],
"ended_at": null,
"invoice_settings": {
"account_tax_ids": null,
"issuer": {
"type": "self"
}
},
"items": {
"object": "list",
"data": [
{
"id": "si_T2mQrQL78UNfMB",
"object": "subscription_item",
"billing_thresholds": null,
"created": 1757721524,
"current_period_end": 1760313523,
"current_period_start": 1757721523,
"discounts": [],
"metadata": [],
"plan": {
"id": "price_1S30v9JTsOSWtcD758Fc2uCA",
"object": "plan",
"active": true,
"aggregate_usage": null,
"amount": 1500,
"amount_decimal": "1500",
"billing_scheme": "per_unit",
"created": 1756845315,
"currency": "usd",
"interval": "month",
"interval_count": 1,
"livemode": false,
"metadata": [],
"meter": null,
"nickname": null,
"product": "prod_Syysk4pULEkaGB",
"tiers_mode": null,
"transform_usage": null,
"trial_period_days": null,
"usage_type": "licensed"
},
"price": {
"id": "price_1S30v9JTsOSWtcD758Fc2uCA",
"object": "price",
"active": true,
"billing_scheme": "per_unit",
"created": 1756845315,
"currency": "usd",
"custom_unit_amount": null,
"livemode": false,
"lookup_key": "pro_v2",
"metadata": [],
"nickname": null,
"product": "prod_Syysk4pULEkaGB",
"recurring": {
"aggregate_usage": null,
"interval": "month",
"interval_count": 1,
"meter": null,
"trial_period_days": null,
"usage_type": "licensed"
},
"tax_behavior": "unspecified",
"tiers_mode": null,
"transform_quantity": null,
"type": "recurring",
"unit_amount": 1500,
"unit_amount_decimal": "1500"
},
"quantity": 1,
"subscription": "sub_1S6grXJTsOSWtcD7Dy50xAvA",
"tax_rates": []
}
],
"has_more": false,
"total_count": 1,
"url": "/v1/subscription_items?subscription=sub_1S6grXJTsOSWtcD7Dy50xAvA"
},
"latest_invoice": {
"id": "in_1S6grYJTsOSWtcD7R3csbRf5",
"object": "invoice",
"account_country": "US",
"account_name": "Real Practice Mode",
"account_tax_ids": null,
"amount_due": 1500,
"amount_overpaid": 0,
"amount_paid": 0,
"amount_remaining": 1500,
"amount_shipping": 0,
"application": null,
"application_fee_amount": null,
"attempt_count": 0,
"attempted": false,
"auto_advance": false,
"automatic_tax": {
"disabled_reason": null,
"enabled": false,
"liability": null,
"provider": null,
"status": null
},
"automatically_finalizes_at": null,
"billing_reason": "subscription_create",
"charge": null,
"collection_method": "charge_automatically",
"created": 1757721524,
"currency": "usd",
"custom_fields": null,
"customer": "cus_T2mQVSq1at0LoF",
"customer_address": null,
"customer_email": "james2@appfactory.studio",
"customer_name": null,
"customer_phone": null,
"customer_shipping": null,
"customer_tax_exempt": "none",
"customer_tax_ids": [],
"default_payment_method": null,
"default_source": null,
"default_tax_rates": [],
"description": null,
"discount": null,
"discounts": [],
"due_date": null,
"effective_at": 1757721524,
"ending_balance": 0,
"footer": null,
"from_invoice": null,
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_1S30kTJTsOSWtcD7/test_YWNjdF8xUzMwa1RKVHNPU1d0Y0Q3LF9UMm1RWGRrQjlSMjdWRXoxOVUxa1FNSGtyRXJSdHkzLDE0ODI2MjMyNQ0200PdEGuIFd?s=ap",
"invoice_pdf": "https://pay.stripe.com/invoice/acct_1S30kTJTsOSWtcD7/test_YWNjdF8xUzMwa1RKVHNPU1d0Y0Q3LF9UMm1RWGRrQjlSMjdWRXoxOVUxa1FNSGtyRXJSdHkzLDE0ODI2MjMyNQ0200PdEGuIFd/pdf?s=ap",
"issuer": {
"type": "self"
},
"last_finalization_error": null,
"latest_revision": null,
"lines": {
"object": "list",
"data": [
{
"id": "il_1S6grYJTsOSWtcD7cJAfEVOz",
"object": "line_item",
"amount": 1500,
"amount_excluding_tax": 1500,
"currency": "usd",
"description": "1 × Pro (at $15.00 / month)",
"discount_amounts": [],
"discountable": true,
"discounts": [],
"invoice": "in_1S6grYJTsOSWtcD7R3csbRf5",
"livemode": false,
"metadata": [],
"parent": {
"invoice_item_details": null,
"subscription_item_details": {
"invoice_item": null,
"proration": false,
"proration_details": {
"credited_items": null
},
"subscription": "sub_1S6grXJTsOSWtcD7Dy50xAvA",
"subscription_item": "si_T2mQrQL78UNfMB"
},
"type": "subscription_item_details"
},
"period": {
"end": 1760313523,
"start": 1757721523
},
"plan": {
"id": "price_1S30v9JTsOSWtcD758Fc2uCA",
"object": "plan",
"active": true,
"aggregate_usage": null,
"amount": 1500,
"amount_decimal": "1500",
"billing_scheme": "per_unit",
"created": 1756845315,
"currency": "usd",
"interval": "month",
"interval_count": 1,
"livemode": false,
"metadata": [],
"meter": null,
"nickname": null,
"product": "prod_Syysk4pULEkaGB",
"tiers_mode": null,
"transform_usage": null,
"trial_period_days": null,
"usage_type": "licensed"
},
"pretax_credit_amounts": [],
"price": {
"id": "price_1S30v9JTsOSWtcD758Fc2uCA",
"object": "price",
"active": true,
"billing_scheme": "per_unit",
"created": 1756845315,
"currency": "usd",
"custom_unit_amount": null,
"livemode": false,
"lookup_key": "pro_v2",
"metadata": [],
"nickname": null,
"product": "prod_Syysk4pULEkaGB",
"recurring": {
"aggregate_usage": null,
"interval": "month",
"interval_count": 1,
"meter": null,
"trial_period_days": null,
"usage_type": "licensed"
},
"tax_behavior": "unspecified",
"tiers_mode": null,
"transform_quantity": null,
"type": "recurring",
"unit_amount": 1500,
"unit_amount_decimal": "1500"
},
"pricing": {
"price_details": {
"price": "price_1S30v9JTsOSWtcD758Fc2uCA",
"product": "prod_Syysk4pULEkaGB"
},
"type": "price_details",
"unit_amount_decimal": "1500"
},
"proration": false,
"proration_details": {
"credited_items": null
},
"quantity": 1,
"subscription": "sub_1S6grXJTsOSWtcD7Dy50xAvA",
"subscription_item": "si_T2mQrQL78UNfMB",
"tax_amounts": [],
"tax_rates": [],
"taxes": [],
"type": "subscription",
"unit_amount_excluding_tax": "1500"
}
],
"has_more": false,
"total_count": 1,
"url": "/v1/invoices/in_1S6grYJTsOSWtcD7R3csbRf5/lines"
},
"livemode": false,
"metadata": [],
"next_payment_attempt": null,
"number": "28VRJJXM-0001",
"on_behalf_of": null,
"paid": false,
"paid_out_of_band": false,
"parent": {
"quote_details": null,
"subscription_details": {
"metadata": [],
"subscription": "sub_1S6grXJTsOSWtcD7Dy50xAvA"
},
"type": "subscription_details"
},
"payment_intent": {
"id": "pi_3S6grYJTsOSWtcD717LhjDQQ",
"object": "payment_intent",
"amount": 1500,
"amount_capturable": 0,
"amount_details": {
"tip": []
},
"amount_received": 0,
"application": null,
"application_fee_amount": null,
"automatic_payment_methods": null,
"canceled_at": null,
"cancellation_reason": null,
"capture_method": "automatic",
"charges": {
"object": "list",
"data": [],
"has_more": false,
"total_count": 0,
"url": "/v1/charges?payment_intent=pi_3S6grYJTsOSWtcD717LhjDQQ"
},
"client_secret": "pi_3S6grYJTsOSWtcD717LhjDQQ_secret_6HS5XZuyBoF596DH1WMwvgCi8",
"confirmation_method": "automatic",
"created": 1757721524,
"currency": "usd",
"customer": "cus_T2mQVSq1at0LoF",
"description": "Subscription creation",
"excluded_payment_method_types": null,
"invoice": "in_1S6grYJTsOSWtcD7R3csbRf5",
"last_payment_error": null,
"latest_charge": null,
"livemode": false,
"metadata": [],
"next_action": null,
"on_behalf_of": null,
"payment_method": null,
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
"installments": null,
"mandate_options": null,
"network": null,
"request_three_d_secure": "automatic"
},
"cashapp": [],
"klarna": {
"preferred_locale": null
},
"link": {
"persistent_token": null
}
},
"payment_method_types": [
"card",
"cashapp",
"klarna",
"link"
],
"processing": null,
"receipt_email": null,
"review": null,
"setup_future_usage": "off_session",
"shipping": null,
"source": null,
"statement_descriptor": null,
"statement_descriptor_suffix": null,
"status": "requires_payment_method",
"transfer_data": null,
"transfer_group": null
},
"payment_settings": {
"default_mandate": null,
"payment_method_options": null,
"payment_method_types": null
},
"period_end": 1757721523,
"period_start": 1757721523,
"post_payment_credit_notes_amount": 0,
"pre_payment_credit_notes_amount": 0,
"quote": null,
"receipt_number": null,
"rendering": null,
"rendering_options": null,
"shipping_cost": null,
"shipping_details": null,
"starting_balance": 0,
"statement_descriptor": null,
"status": "open",
"status_transitions": {
"finalized_at": 1757721524,
"marked_uncollectible_at": null,
"paid_at": null,
"voided_at": null
},
"subscription": "sub_1S6grXJTsOSWtcD7Dy50xAvA",
"subscription_details": {
"metadata": []
},
"subtotal": 1500,
"subtotal_excluding_tax": 1500,
"tax": null,
"test_clock": null,
"total": 1500,
"total_discount_amounts": [],
"total_excluding_tax": 1500,
"total_pretax_credit_amounts": [],
"total_tax_amounts": [],
"total_taxes": [],
"transfer_data": null,
"webhooks_delivered_at": null
},
"livemode": false,
"metadata": [],
"next_pending_invoice_item_invoice": null,
"on_behalf_of": null,
"pause_collection": null,
"payment_settings": {
"payment_method_options": null,
"payment_method_types": null,
"save_default_payment_method": "off"
},
"pending_invoice_item_interval": null,
"pending_setup_intent": null,
"pending_update": null,
"plan": {
"id": "price_1S30v9JTsOSWtcD758Fc2uCA",
"object": "plan",
"active": true,
"aggregate_usage": null,
"amount": 1500,
"amount_decimal": "1500",
"billing_scheme": "per_unit",
"created": 1756845315,
"currency": "usd",
"interval": "month",
"interval_count": 1,
"livemode": false,
"metadata": [],
"meter": null,
"nickname": null,
"product": "prod_Syysk4pULEkaGB",
"tiers_mode": null,
"transform_usage": null,
"trial_period_days": null,
"usage_type": "licensed"
},
"quantity": 1,
"schedule": null,
"start_date": 1757721523,
"status": "incomplete",
"test_clock": null,
"transfer_data": null,
"trial_end": null,
"trial_settings": {
"end_behavior": {
"missing_payment_method": "create_invoice"
}
},
"trial_start": null
},
"payment_intent": {
"id": "pi_3S6grYJTsOSWtcD717LhjDQQ",
"object": "payment_intent",
"amount": 1500,
"amount_capturable": 0,
"amount_details": {
"tip": []
},
"amount_received": 0,
"application": null,
"application_fee_amount": null,
"automatic_payment_methods": null,
"canceled_at": null,
"cancellation_reason": null,
"capture_method": "automatic",
"charges": {
"object": "list",
"data": [],
"has_more": false,
"total_count": 0,
"url": "/v1/charges?payment_intent=pi_3S6grYJTsOSWtcD717LhjDQQ"
},
"client_secret": "pi_3S6grYJTsOSWtcD717LhjDQQ_secret_6HS5XZuyBoF596DH1WMwvgCi8",
"confirmation_method": "automatic",
"created": 1757721524,
"currency": "usd",
"customer": "cus_T2mQVSq1at0LoF",
"description": "Subscription creation",
"excluded_payment_method_types": null,
"invoice": "in_1S6grYJTsOSWtcD7R3csbRf5",
"last_payment_error": null,
"latest_charge": null,
"livemode": false,
"metadata": [],
"next_action": null,
"on_behalf_of": null,
"payment_method": null,
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
"installments": null,
"mandate_options": null,
"network": null,
"request_three_d_secure": "automatic"
},
"cashapp": [],
"klarna": {
"preferred_locale": null
},
"link": {
"persistent_token": null
}
},
"payment_method_types": [
"card",
"cashapp",
"klarna",
"link"
],
"processing": null,
"receipt_email": null,
"review": null,
"setup_future_usage": "off_session",
"shipping": null,
"source": null,
"statement_descriptor": null,
"statement_descriptor_suffix": null,
"status": "requires_payment_method",
"transfer_data": null,
"transfer_group": null
}
}
},
"archive": {
"processor": {
"name": "stripe",
"_meta": {
"template_version": 0
},
"fixtures": [
{
"name": "personal_v2",
"path": "/v1/products",
"method": "post",
"params": {
"name": "Personal"
}
},
{
"name": "personal_v2",
"path": "/v1/prices",
"method": "post",
"params": {
"product": "${personal_v2:id}",
"lookup_key": "personal_v2",
"currency": "usd",
"unit_amount": 1500,
"recurring": {
"interval": "month"
},
"metadata": {
"sample": "fixed-price"
}
}
},
{
"name": "business_v2",
"path": "/v1/products",
"method": "post",
"params": {
"name": "Business"
}
},
{
"name": "business_v2",
"path": "/v1/prices",
"method": "post",
"params": {
"product": "${business_v2:id}",
"lookup_key": "business_v2",
"currency": "usd",
"unit_amount": 2500,
"recurring": {
"interval": "month"
},
"metadata": {
"sample": "fixed-price"
}
}
},
{
"name": "organization_v2",
"path": "/v1/products",
"method": "post",
"params": {
"name": "Organization"
}
},
{
"name": "organization_v2",
"path": "/v1/prices",
"method": "post",
"params": {
"product": "${organization_v2:id}",
"lookup_key": "organization_v2",
"currency": "usd",
"unit_amount": 5000,
"recurring": {
"interval": "month"
},
"metadata": {
"sample": "fixed-price"
}
}
},
{
"name": "enterprise_v2",
"path": "/v1/products",
"method": "post",
"params": {
"name": "Enterprise"
}
},
{
"name": "enterprise_price",
"path": "/v1/prices",
"method": "post",
"params": {
"product": "${enterprise_v2:id}",
"lookup_key": "enterprise_v2",
"currency": "usd",
"unit_amount": 20000,
"recurring": {
"interval": "month"
},
"metadata": {
"sample": "fixed-price"
}
}
}
],
"prices": [
{
"id": "member_website"
}
]
},
"features": {
"environments": {
"models": [
{
"id": "production",
"name": "Production"
},
{
"id": "preview",
"name": "Preview Beta"
},
{
"id": "development",
"name": "Development"
}
]
},
"models": [
{
"name": "domains",
"active": true,
"environments": [
{
"id": "production",
"active": true
},
{
"id": "development",
"active": true
},
{
"id": "preview",
"active": true
}
]
},
{
"name": "applications",
"active": true,
"environments": [
{
"id": "production",
"active": true
},
{
"id": "development",
"active": true
},
{
"id": "preview",
"active": true
}
]
},
{
"name": "commerce",
"active": false,
"environments": [
{
"id": "production",
"active": true
},
{
"id": "development",
"active": true
},
{
"id": "preview",
"active": true
}
]
},
{
"name": "coord",
"active": true,
"environments": [
{
"id": "production",
"active": true
},
{
"id": "development",
"active": true
},
{
"id": "preview",
"active": true
}
]
},
{
"name": "notes",
"active": true,
"environments": [
{
"id": "production",
"active": true
},
{
"id": "development",
"active": true
},
{
"id": "preview",
"active": true
}
]
},
{
"name": "settings",
"active": false,
"environments": [
{
"id": "production",
"active": true
},
{
"id": "development",
"active": true
},
{
"id": "preview",
"active": true
}
]
},
{
"name": "account",
"active": true,
"environments": [
{
"id": "production",
"active": true
},
{
"id": "development",
"active": true
},
{
"id": "preview",
"active": true
}
]
}
]
},
"catalog": {
"archive": {
"status": 1,
"addons": {
"items": [
{
"id": "",
"count": 0,
"_reciept": []
}
]
},
"templates": {
"domain": {
"id": "",
"modules": {
"email": {
"count": 0,
"send": 0
},
"storage": {
"count": 0
},
"processors": {
"count": 0
},
"forms": {
"count": 0
},
"sponsorships": {
"count": 0
},
"events": {
"count": 0
},
"contacts": {
"count": 0
}
}
}
},
"alloc": {
"websites": {
"hosting": {
"count": 0
}
},
"voip": {
"number": {
"count": 0
}
},
"storage": {
"number": {
"count": 0
}
},
"domains": []
}
},
"registry": {
"alloc": {
"members": {
"allocation": [
1,
1,
3,
5,
10
],
"modules": {
"storage": {
"allocation": 100,
"memberships": [
{
"size": 2000,
"amount": 1,
"count": 0
},
{
"size": 2000,
"amount": 1,
"count": 0
},
{
"size": 5000,
"amount": 1,
"count": 0
},
{
"size": 25000,
"amount": 1,
"count": 0
},
{
"size": -1,
"amount": 1,
"count": 0
}
]
},
"websites": {
"allocation": 100,
"memberships": [
{
"amount": 1,
"count": 0
},
{
"amount": 2,
"count": 0
},
{
"amount": 5,
"count": 0
},
{
"amount": 15,
"count": 0
},
{
"amount": 50,
"count": 0
}
]
}
}
},
"websites": {
"allocation": [
1,
1,
3,
5,
10
],
"modules": {
"hosting": {
"allocation": 100,
"memberships": [
{
"count": 1
},
{
"count": 2
},
{
"count": 5
},
{
"count": 15
},
{
"count": 50
}
]
}
}
},
"voip": {
"allocation": [
1,
1,
3,
5,
10
],
"modules": {
"phone_number": {
"allocation": 100,
"memberships": [
{
"amount": 1,
"count": 0,
"send": "100,1m"
},
{
"amount": 1,
"count": 0,
"send": "200,30"
},
{
"amount": 5,
"count": 0,
"send": "300,30"
},
{
"amount": 25,
"count": 0,
"send": "400,30"
},
{
"amount": -1,
"count": 0,
"send": "500,30"
}
]
}
}
},
"domains": {
"allocation": [
1,
1,
3,
5,
10
],
"modules": {
"email": {
"allocation": 100,
"memberships": [
{
"amount": 1,
"count": 0,
"send": "100,1m"
},
{
"amount": 1,
"count": 0,
"send": "200,30"
},
{
"amount": 5,
"count": 0,
"send": "300,30"
},
{
"amount": 25,
"count": 0,
"send": "400,30"
},
{
"amount": -1,
"count": 0,
"send": "500,30"
}
]
},
"storage": {
"allocation": 100,
"memberships": [
{
"size": 2000
},
{
"size": 2000
},
{
"size": 5000
},
{
"size": 25000
},
{
"size": -1
}
]
},
"processors": {
"allocation": 100,
"memberships": [
{
"count": 1
},
{
"count": 2
},
{
"count": 5
},
{
"count": 15
},
{
"count": 50
}
]
},
"forms": {
"allocation": 100,
"memberships": [
{
"count": 10
},
{
"count": 25
},
{
"count": 500
},
{
"count": 5000
},
{
"count": 10000
}
]
},
"sponsorships": {
"allocation": 100,
"memberships": [
{
"count": 1
},
{
"count": 3
},
{
"count": 5
},
{
"count": 15
},
{
"count": 50
}
]
},
"events": {
"allocation": 100,
"memberships": [
{
"count": 1
},
{
"count": 2
},
{
"count": 5
},
{
"count": 15
},
{
"count": 50
}
]
},
"contacts": {
"allocation": 100,
"memberships": [
{
"count": 1
},
{
"count": 5
},
{
"count": 50
},
{
"count": 100
},
{
"count": 500
}
]
}
}
},
"coordinator": [],
"commerce": [],
"dreamgraph": [],
"notes": []
},
"addons": {
"items": [
{
"id": "website",
"price": "member_website",
"quantity": 1,
"description": "Adds the ability to create another website",
"reject": {
"status": [
2
],
"own": [
5,
50,
100
]
}
},
{
"id": "phone_number",
"price": "phone_number",
"quantity": 1,
"description": "Adds the ability to create a voip telephone number",
"reject": {
"status": []
}
},
{
"id": "domain_name",
"price": "domain_name",
"quantity": 1,
"description": "Purchase a domain name i.e. example.com",
"reject": {
"status": []
}
}
]
}
}
},
"authority": {
"member": {
"admin": {
"company": {
"create:any": [
"*"
],
"read:any": [
"*"
],
"update:any": [
"*"
],
"delete:any": [
"*"
]
},
"brand": {
"create:any": [
"*"
],
"read:any": [
"*"
],
"update:any": [
"*"
],
"delete:any": [
"*"
]
},
"social_media_links": {
"create:any": [
"*"
],
"read:any": [
"*"
],
"update:any": [
"*"
],
"delete:any": [
"*"
]
},
"dashboard_label": {
"create:any": [
"*"
],
"read:any": [
"*"
],
"update:any": [
"*"
],
"delete:any": [
"*"
]
},
"module_email": {
"create:any": [
"*"
],
"read:any": [
"*"
],
"update:any": [
"*"
],
"delete:any": [
"*"
]
},
"module_forms": {
"create:any": [
"*"
],
"read:any": [
"*"
],
"update:any": [
"*"
],
"delete:any": [
"*"
]
},
"module_payments": {
"create:any": [
"*"
],
"read:any": [
"*"
],
"update:any": [
"*"
],
"delete:any": [
"*"
]
},
"module_subscribers": {
"create:any": [
"*"
],
"read:any": [
"*"
],
"update:any": [
"*"
],
"delete:any": [
"*"
]
},
"module_contactus": {
"create:any": [
"*"
],
"read:any": [
"*"
],
"update:any": [
"*"
],
"delete:any": [
"*"
]
},
"module_sponsorship": {
"create:any": [
"*"
],
"read:any": [
"*"
],
"update:any": [
"*"
],
"delete:any": [
"*"
]
},
"module_events": {
"create:any": [
"*"
],
"read:any": [
"*"
],
"update:any": [
"*"
],
"delete:any": [
"*"
]
},
"module_list": {
"create:any": [
"*"
],
"read:any": [
"*"
],
"update:any": [
"*"
],
"delete:any": [
"*"
]
}
},
"user": {
"brand": {
"create:any": [
"*"
],
"read:any": [
"*"
],
"update:any": [
"*"
],
"delete:any": [
"*"
]
}
}
},
"domain": {
"admin": {
"company": {
"create:any": [
"*"
],
"read:any": [
"*"
],
"update:any": [
"*"
],
"delete:any": [
"*"
]
},
"brand": {
"create:any": [
"*"
],
"read:any": [
"*"
],
"update:any": [
"*"
],
"delete:any": [
"*"
]
},
"social_media_links": {
"create:any": [
"*"
],
"read:any": [
"*"
],
"update:any": [
"*"
],
"delete:any": [
"*"
]
},
"dashboard_label": {
"create:any": [
"*"
],
"read:any": [
"*"
],
"update:any": [
"*"
],
"delete:any": [
"*"
]
},
"module_email": {
"create:any": [
"*"
],
"read:any": [
"*"
],
"update:any": [
"*"
],
"delete:any": [
"*"
]
},
"module_forms": {
"create:any": [
"*"
],
"read:any": [
"*"
],
"update:any": [
"*"
],
"delete:any": [
"*"
]
},
"module_payments": {
"create:any": [
"*"
],
"read:any": [
"*"
],
"update:any": [
"*"
],
"delete:any": [
"*"
]
},
"module_subscribers": {
"create:any": [
"*"
],
"read:any": [
"*"
],
"update:any": [
"*"
],
"delete:any": [
"*"
]
},
"module_contactus": {
"create:any": [
"*"
],
"read:any": [
"*"
],
"update:any": [
"*"
],
"delete:any": [
"*"
]
},
"module_sponsorship": {
"create:any": [
"*"
],
"read:any": [
"*"
],
"update:any": [
"*"
],
"delete:any": [
"*"
]
},
"module_events": {
"create:any": [
"*"
],
"read:any": [
"*"
],
"update:any": [
"*"
],
"delete:any": [
"*"
]
},
"module_list": {
"create:any": [
"*"
],
"read:any": [
"*"
],
"update:any": [
"*"
],
"delete:any": [
"*"
]
}
},
"user": {
"brand": {
"create:any": [
"*"
],
"read:any": [
"*"
],
"update:any": [
"*"
],
"delete:any": [
"*"
]
}
}
}
},
"integrations": {
"email": {
"mysql_id": 1,
"category": "email_module",
"nameid": "default",
"accounts": [
{
"username": "no-reply",
"type:": 1
}
],
"active_integration": "sendgrid",
"_integration_default": {
"name": "appfactory_studio",
"label": "Appfactory Studio",
"domain": "",
"server": "",
"key": "",
"secret": ""
},
"integrations": [
{
"name": "appfactory_studio",
"label": "Appfactory Studio",
"domain": "",
"server": "",
"key": "",
"secret": "",
"active": false
},
{
"name": "sendgrid",
"label": "SendGrid",
"domain": "appfactory.studio",
"server": "server1.appfactory.studio",
"key": "",
"secret": "",
"active": true
},
{
"name": "amazon_ses",
"label": "Amazon SES",
"domain": "",
"server": "",
"key": "",
"secret": "",
"active": false
},
{
"name": "mailgun",
"label": "MailGun",
"domain": "",
"server": "",
"key": "",
"secret": "",
"active": false
},
{
"name": "mailchimp",
"label": "MailChimp",
"domain": "",
"server": "",
"key": "",
"secret": "",
"active": false
}
]
}
},
"consts": {
"ADD_DOMAIN": "ADD_DOMAIN"
},
"notifications": {
"messages": [
""
]
},
"pricing_table": {
"dividers": [
{
"name": "domain",
"label": "Domain Website",
"description": "The number of websites that can be deployed"
},
{
"name": "pm",
"label": "Project Manager",
"description": ""
},
{
"name": "notes",
"label": "Notes",
"description": ""
},
{
"name": "graph",
"label": "DreamGraph",
"description": ""
},
{
"name": "commerce",
"label": "Commerce",
"description": ""
}
],
"levels": [
{
"fixture_name": "free",
"description": [
{
"divider": "domain",
"options": [
{
"name": "storage",
"value": "2G",
"description": ""
},
{
"name": "payments",
"value": "check",
"description": ""
},
{
"name": "forms",
"value": "check",
"description": ""
},
{
"name": "subscriber",
"value": "check",
"description": ""
},
{
"name": "events",
"value": "check",
"description": ""
},
{
"name": "sponsorships",
"value": "check",
"description": ""
}
]
}
]
},
[],
{
"header_label": "Professional",
"price_label": "$25",
"description": []
},
{
"header_label": "Orginazation",
"price_label": "$50",
"description": []
},
{
"header_label": "Enterprise",
"price_label": "$199",
"description": []
}
],
"features_description": [
{
"divider": "domain",
"name": "storage",
"label": "Storage",
"description": ""
},
{
"divider": "domain",
"name": "forms",
"label": "Forms",
"description": ""
},
{
"divider": "domain",
"name": "payments",
"label": "Stripe & PayPal Integration",
"description": ""
},
{
"divider": "domain",
"name": "subscriber",
"label": "Subscriber",
"description": ""
},
{
"divider": "domain",
"name": "events",
"label": "Events",
"description": ""
},
{
"divider": "domain",
"name": "sponsorships",
"label": "Sponsorships",
"description": ""
},
{
"divider": 9,
"name": "storage",
"label": "Storage",
"description": ""
},
{
"divider": 9,
"name": "storage",
"label": "Storage",
"description": ""
},
{
"divider": 9,
"name": "storage",
"label": "Storage",
"description": ""
},
{
"divider": 9,
"name": "storage",
"label": "Storage",
"description": ""
},
{
"divider": 9,
"name": "storage",
"label": "Storage",
"description": ""
},
{
"divider": 9,
"name": "storage",
"label": "Storage",
"description": ""
},
{
"divider": 9,
"name": "storage",
"label": "Storage",
"description": ""
},
{
"divider": 9,
"name": "storage",
"label": "Storage",
"description": ""
},
{
"divider": 9,
"name": "storage",
"label": "Storage",
"description": ""
},
{
"divider": 0,
"name": "storage",
"label": "Storage",
"description": ""
},
{
"divider": 9,
"name": "storage",
"label": "Storage",
"description": ""
},
{
"divider": 9,
"name": "storage",
"label": "Storage",
"description": ""
},
{
"divider": 9,
"name": "storage",
"label": "Storage",
"description": ""
},
{
"divider": 9,
"name": "storage",
"label": "Storage",
"description": ""
},
{
"divider": 9,
"name": "storage",
"label": "Storage",
"description": ""
},
{
"divider": 9,
"name": "storage",
"label": "Storage",
"description": ""
},
{
"divider": 9,
"name": "storage",
"label": "Storage",
"description": ""
},
{
"divider": 9,
"name": "storage",
"label": "Storage",
"description": ""
},
{
"divider": 9,
"name": "storage",
"label": "Storage",
"description": ""
},
{
"divider": 9,
"name": "storage",
"label": "Storage",
"description": ""
},
{
"divider": 9,
"name": "storage",
"label": "Storage",
"description": ""
},
{
"divider": 9,
"name": "storage",
"label": "Storage",
"description": ""
},
{
"divider": 9,
"name": "storage",
"label": "Storage",
"description": ""
},
{
"divider": 9,
"name": "storage",
"label": "Storage",
"description": ""
}
]
}
},
"direct_payment": {
"id": 3,
"category": "direct_payments",
"name": "Membership",
"reference_num": "4093-4070-2198-3695",
"processor": "vCLAgOX2",
"type": 1,
"status": 0,
"json": {
"reference_num": "4093-4070-2198-3695",
"display_name": "Membership",
"configuration": {
"payables": {
"processor": "vCLAgOX2"
},
"recurring": {
"processors": [
{
"name": "default",
"processor_nameid": "vCLAgOX2",
"subscription_group": "default"
}
],
"subscriptions": [
{
"name": "default",
"tiers": [
{
"name": "member",
"label": "Member",
"lookup_key": "_none_",
"price": "free",
"price_int": 0
},
{
"name": "pro",
"label": "Pro",
"lookup_key": "pro_v2",
"price": "15.00",
"price_int": 1500
},
{
"name": "business",
"label": "business",
"lookup_key": "business_v2",
"price": "25.00",
"price_int": 2500
},
{
"name": "org",
"label": "Organization",
"lookup_key": "organization_v2",
"price": "50.00",
"price_int": 5000
},
{
"name": "ent",
"label": "Enterprise",
"lookup_key": "enterprise_v2",
"price": "199.99",
"price_int": 19999
}
]
}
],
"discount_codes": []
}
},
"mysql_id": 1
},
"date": "2024-12-08 02:46:16",
"_processor": {
"id": 4,
"category": "processors",
"reference_abbr": null,
"json": {
"display_name": "AFS Stripe Sandbox",
"active": true,
"mode": "sandbox",
"client_id": "pk_test_51S30kTJTsOSWtcD79lohqmoR82oCRRMoaLXt5Mp3w4IjY8aWe8DryZD9Jn0vjewY9LkrXpSl30WucTAv4Znknr1w00X4vLzqQT",
"service_port": "9967",
"service_end_point": "stripe_checkout",
"processor": "stripe",
"mysql_id": 4,
"nameid": "vCLAgOX2",
"category": "processors"
},
"date": "2025-08-28 19:51:29"
}
}
}
})();